summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqltest.test
diff options
context:
space:
mode:
authorBjorn Munch <bjorn.munch@oracle.com>2011-01-11 10:54:42 +0100
committerBjorn Munch <bjorn.munch@oracle.com>2011-01-11 10:54:42 +0100
commit5376a76dea7cd8b15c4b95911a18233fc924d305 (patch)
tree00ec5ed4f78c3845f192d75410a28a9b6c94eb9d /mysql-test/t/mysqltest.test
parentf3bc9f699cb37bbecc24efbb46d2fdba01dcbb42 (diff)
downloadmariadb-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.test6
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