From a959c22e7fbbac9c19cc9e1dfb18284bf7c67046 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Thu, 27 Apr 2023 10:46:41 +0200 Subject: return accidentally removed in 45d4f6b97b4811b1b7783dcd19526be1dbb196dc comment --- sql/table.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sql/table.cc b/sql/table.cc index fd5334271be..15a92818b81 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -3171,6 +3171,12 @@ int TABLE_SHARE::init_from_sql_statement_string(THD *thd, bool write, LEX_CSTRING db_backup= thd->db; DBUG_ENTER("TABLE_SHARE::init_from_sql_statement_string"); + /* + Ouch. Parser may *change* the string it's working on. + Currently (2013-02-26) it is used to permanently disable + conditional comments. + Anyway, let's copy the caller's string... + */ if (!(sql_copy= thd->strmake(sql, sql_length))) DBUG_RETURN(HA_ERR_OUT_OF_MEM); -- cgit v1.2.1