summaryrefslogtreecommitdiff
path: root/mysql-test/t/execution_constants.test
diff options
context:
space:
mode:
authorMagnus Svensson <msvensson@mysql.com>2008-08-04 12:38:50 +0200
committerMagnus Svensson <msvensson@mysql.com>2008-08-04 12:38:50 +0200
commitc7de7ff0bd262e2a43a1e545ad513b1ccff1238c (patch)
tree11c91878e4017691a0abd037b32526d53a1ee32a /mysql-test/t/execution_constants.test
parentdacfba06f8397b81da45897e504a44ec3f1af7fc (diff)
downloadmariadb-git-c7de7ff0bd262e2a43a1e545ad513b1ccff1238c.tar.gz
Bug #32307 mysqltest - does not detect illegal if syntax
Diffstat (limited to 'mysql-test/t/execution_constants.test')
-rw-r--r--mysql-test/t/execution_constants.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/mysql-test/t/execution_constants.test b/mysql-test/t/execution_constants.test
index 4930164d3fa..e61d79f5249 100644
--- a/mysql-test/t/execution_constants.test
+++ b/mysql-test/t/execution_constants.test
@@ -41,12 +41,19 @@ while ($i)
error 0,1436 //
eval $query_head 0 $query_tail//
- if ($mysql_errno != 1436)
+ if ($mysql_errno)
{
# We reached the place where we reported an error about the stack limit,
# and we successfully returned the error. That means that at the stack
# limit, we still have enough space reserved to report an error.
let $i = 1//
+
+ # Check that mysql_errno is 1436
+ if (`select $mysql_errno != 1436`)
+ {
+ die Wrong error triggered, expected 1436 but got $mysql_errno//
+ }
+
}
# Multiplying by three stack frames should be fine enough resolution.