diff options
author | Ramil Kalimullin <ramil@mysql.com> | 2010-11-22 12:21:10 +0300 |
---|---|---|
committer | Ramil Kalimullin <ramil@mysql.com> | 2010-11-22 12:21:10 +0300 |
commit | 65116d34089d977929f36542522e79d05786094d (patch) | |
tree | 855936cec6d3b0afd67eb17131c2c9c1133e3d82 /mysql-test/t/mysqltest.test | |
parent | e4d2fd35a7333fb6a9c92c6439b4c4123983ccde (diff) | |
parent | a6294cd5cbd02c48b28fe8b380f8c259f14f9d8c (diff) | |
download | mariadb-git-65116d34089d977929f36542522e79d05786094d.tar.gz |
Manual-merge from mysql-5.1-bugteam.
Diffstat (limited to 'mysql-test/t/mysqltest.test')
-rw-r--r-- | mysql-test/t/mysqltest.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/mysqltest.test b/mysql-test/t/mysqltest.test index c250b8768d2..5b17fedee2e 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 @@ -1131,6 +1138,11 @@ if (!$counter) { echo Counter is not 0, (counter=10); } +if (! $counter) +{ + let $counter=5; +} +echo Counter should still be 10, is $counter; let $counter=0; if($counter) { @@ -1140,6 +1152,10 @@ if (!$counter) { echo Counter is not 0, (counter=0); } +if (! $counter) +{ + echo Not space var works; +} # ---------------------------------------------------------------------------- # Test if with some non-numerics |