diff options
author | Magnus Svensson <msvensson@mysql.com> | 2008-08-04 12:38:50 +0200 |
---|---|---|
committer | Magnus Svensson <msvensson@mysql.com> | 2008-08-04 12:38:50 +0200 |
commit | c7de7ff0bd262e2a43a1e545ad513b1ccff1238c (patch) | |
tree | 11c91878e4017691a0abd037b32526d53a1ee32a /mysql-test/t/execution_constants.test | |
parent | dacfba06f8397b81da45897e504a44ec3f1af7fc (diff) | |
download | mariadb-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.test | 9 |
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. |