summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorunknown <cmiller@maint1.mysql.com>2006-08-23 19:14:58 +0200
committerunknown <cmiller@maint1.mysql.com>2006-08-23 19:14:58 +0200
commitf9832bf116b2525afa79267cfea6cd8360e418f6 (patch)
treee788abcd6fb6c865ebd76205fbd4c28799bad97b /sql/item_strfunc.cc
parent75e40b161b5cbbea28eca2641e6dfadaf09267a1 (diff)
downloadmariadb-git-f9832bf116b2525afa79267cfea6cd8360e418f6.tar.gz
Bug #20908: Crash if select @@""
Zero-length variables caused failures when using the length to look up the name in a hash. Instead, signal that no zero-length name can ever be found and that to encounter one is a syntax error. mysql-test/r/variables.result: Results for test. mysql-test/t/variables.test: Insert tests to prove that zero-length variable names do not cause faults. sql/gen_lex_hash.cc: If the length is zero, then there is nothing to look-up in the hash. sql/sql_lex.cc: Names of variables must not be empty. Signal an error of that happens.
Diffstat (limited to 'sql/item_strfunc.cc')
0 files changed, 0 insertions, 0 deletions