Skip to content

Commit 32659db

Browse files
committed
Fix merge error from 10.0
Item_func_sysconst behaves as a non-constant function during prepared statements and view creation and constant otherwise. Current condition implied the opposite.
1 parent 2e335a4 commit 32659db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/item_strfunc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2339,7 +2339,7 @@ Item *Item_func_sysconst::safe_charset_converter(THD *thd, CHARSET_INFO *tocs)
23392339
23402340
Return the identical item during view creation and prepare.
23412341
*/
2342-
if (!thd->lex->is_ps_or_view_context_analysis())
2342+
if (thd->lex->is_ps_or_view_context_analysis())
23432343
return this;
23442344
return const_charset_converter(thd, tocs, true, fully_qualified_func_name());
23452345
}

0 commit comments

Comments
 (0)