diff options
author | Bjorn Munch <bjorn.munch@oracle.com> | 2010-11-15 14:23:02 +0100 |
---|---|---|
committer | Bjorn Munch <bjorn.munch@oracle.com> | 2010-11-15 14:23:02 +0100 |
commit | 92a1a112030452b375684e2b8633de0a32dc0912 (patch) | |
tree | d9bdfcbf2ee86e412eed95ee536e7a966582dbd3 /mysql-test/t | |
parent | dbbb506f4226e30255b8f4463163d4f6d39400fc (diff) | |
download | mariadb-git-92a1a112030452b375684e2b8633de0a32dc0912.tar.gz |
Bug #58087 mysqltest re-evaluates 'let' expressions infinitely
Results from query is sent for evaluation
Break recursion by asking for ` to be ignored
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/mysqltest.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/mysqltest.test b/mysql-test/t/mysqltest.test index d6bdbc2b3c1..59ff70e1591 100644 --- a/mysql-test/t/mysqltest.test +++ b/mysql-test/t/mysqltest.test @@ -854,6 +854,13 @@ let $var2= `failing query`; echo $var2; EOF +create table t1 (a varchar(100)); +insert into t1 values ('`select 42`'); +let $a= `select * from t1`; +# This should output `select 42`, not evaluate it again to 42 +echo $a; +drop table t1; + --error 1 --exec $MYSQL_TEST < $MYSQLTEST_VARDIR/tmp/let.sql 2>&1 |