diff options
author | Bjorn Munch <bjorn.munch@oracle.com> | 2011-01-11 10:54:42 +0100 |
---|---|---|
committer | Bjorn Munch <bjorn.munch@oracle.com> | 2011-01-11 10:54:42 +0100 |
commit | 5376a76dea7cd8b15c4b95911a18233fc924d305 (patch) | |
tree | 00ec5ed4f78c3845f192d75410a28a9b6c94eb9d /mysql-test/t/mysqltest.test | |
parent | f3bc9f699cb37bbecc24efbb46d2fdba01dcbb42 (diff) | |
download | mariadb-git-5376a76dea7cd8b15c4b95911a18233fc924d305.tar.gz |
Bug #58900 query_get_value crashes when result begins with dollar sign
Generalized fix for recursive backtick
Optional arg to eval_expr telling it not to interpret
Diffstat (limited to 'mysql-test/t/mysqltest.test')
-rw-r--r-- | mysql-test/t/mysqltest.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/mysqltest.test b/mysql-test/t/mysqltest.test index 56c86f7d431..52dfd8e86d3 100644 --- a/mysql-test/t/mysqltest.test +++ b/mysql-test/t/mysqltest.test @@ -859,6 +859,12 @@ insert into t1 values ('`select 42`'); let $a= `select * from t1`; # This should output `select 42`, not evaluate it again to 42 echo $a; +insert into t1 values ('$dollar'); +# These should also output the string without evaluating it. +let $a= query_get_value(select * from t1 order by a, a, 1); +echo $a; +let $a= query_get_value(select * from t1 order by a, a, 2); +echo $a; drop table t1; --error 1 |