diff options
author | cmiller@maint1.mysql.com <> | 2006-08-15 18:41:21 +0200 |
---|---|---|
committer | cmiller@maint1.mysql.com <> | 2006-08-15 18:41:21 +0200 |
commit | 53bb6a47cd67fb988c5cf6f1fff48b5a5023bcd1 (patch) | |
tree | 3c68981f31652387f476c382903a11ee5922f955 /mysql-test/t/variables.test | |
parent | 951eb48a6207669b3f1946ffebf3ea91fe5f8cf4 (diff) | |
download | mariadb-git-53bb6a47cd67fb988c5cf6f1fff48b5a5023bcd1.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.
Diffstat (limited to 'mysql-test/t/variables.test')
-rw-r--r-- | mysql-test/t/variables.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/variables.test b/mysql-test/t/variables.test index 68efcafd1e0..d855b4d8266 100644 --- a/mysql-test/t/variables.test +++ b/mysql-test/t/variables.test @@ -585,6 +585,16 @@ show variables like 'ssl%'; select @@log_queries_not_using_indexes; show variables like 'log_queries_not_using_indexes'; +# +# Bug#20908: Crash if select @@"" +# +--error ER_PARSE_ERROR +select @@""; +--error ER_PARSE_ERROR +select @@&; +--error ER_PARSE_ERROR +select @@@; + --echo End of 5.0 tests # This is at the very after the versioned tests, since it involves doing @@ -620,3 +630,4 @@ set global server_id =@my_server_id; set global slow_launch_time =@my_slow_launch_time; set global storage_engine =@my_storage_engine; set global thread_cache_size =@my_thread_cache_size; + |