Skip to content

Commit a959c22

Browse files
committed
return accidentally removed in 45d4f6b comment
1 parent 6171119 commit a959c22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sql/table.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,6 +3171,12 @@ int TABLE_SHARE::init_from_sql_statement_string(THD *thd, bool write,
31713171
LEX_CSTRING db_backup= thd->db;
31723172
DBUG_ENTER("TABLE_SHARE::init_from_sql_statement_string");
31733173

3174+
/*
3175+
Ouch. Parser may *change* the string it's working on.
3176+
Currently (2013-02-26) it is used to permanently disable
3177+
conditional comments.
3178+
Anyway, let's copy the caller's string...
3179+
*/
31743180
if (!(sql_copy= thd->strmake(sql, sql_length)))
31753181
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
31763182

0 commit comments

Comments
 (0)