diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 44667a425fe..adf14228e75 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -9958,7 +9958,7 @@ literal: $$= new Item_string(NULL, /* name will be set in select_item */ str ? str->ptr() : "", str ? str->length() : 0, - Lex->underscore_charset); + $1); if ($$ && !$$->check_well_formed_result(&$$->str_value)) { $$= new Item_null();