diff options
author | unknown <gluh@eagle.(none)> | 2007-10-16 14:10:07 +0500 |
---|---|---|
committer | unknown <gluh@eagle.(none)> | 2007-10-16 14:10:07 +0500 |
commit | 5db33c4ecc12f1980acafeb1d64f6175aaed1bff (patch) | |
tree | b00f1e2b41e0adf4cdc3bc27d973709028d87f63 /sql/sql_yacc.yy | |
parent | d5d1ae03863ae10e20ee1ac29105e83228dd5ae5 (diff) | |
parent | 1c0be008400f4c0b1996623cffc82e67afb760cc (diff) | |
download | mariadb-git-5db33c4ecc12f1980acafeb1d64f6175aaed1bff.tar.gz |
Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt
into mysql.com:/home/gluh/MySQL/Merge/5.1-opt
mysql-test/r/ctype_utf8.result:
Auto merged
mysql-test/t/ctype_utf8.test:
Auto merged
sql/item.cc:
Auto merged
sql/item.h:
Auto merged
sql/sql_yacc.yy:
Auto merged
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r-- | sql/sql_yacc.yy | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index adf14228e75..ce64323464f 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -9935,15 +9935,11 @@ literal: str ? str->ptr() : "", str ? str->length() : 0, $1); - if ($$) + if (!$$ || !$$->check_well_formed_result(&$$->str_value, TRUE)) { - ((Item_string *) $$)->set_repertoire_from_value(); - if (!$$->check_well_formed_result(&$$->str_value)) - { - $$= new Item_null(); - $$->set_name(NULL, 0, system_charset_info); - } + MYSQL_YYABORT; } + ((Item_string *) $$)->set_repertoire_from_value(); } | UNDERSCORE_CHARSET BIN_NUM { @@ -9959,10 +9955,9 @@ literal: str ? str->ptr() : "", str ? str->length() : 0, $1); - if ($$ && !$$->check_well_formed_result(&$$->str_value)) + if (!$$ || !$$->check_well_formed_result(&$$->str_value, TRUE)) { - $$= new Item_null(); - $$->set_name(NULL, 0, system_charset_info); + MYSQL_YYABORT; } } | DATE_SYM text_literal { $$ = $2; } |