mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Bug #32307 mysqltest - does not detect illegal if syntax
This commit is contained in:
parent
dacfba06f8
commit
c7de7ff0bd
9 changed files with 45 additions and 12 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue