1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Tests: many if/while expresissons simplified after 57276

This commit is contained in:
Bjorn Munch
2010-11-17 11:16:13 +01:00
parent 49ce7daa94
commit ef4458af07
53 changed files with 211 additions and 182 deletions

View File

@@ -53,24 +53,24 @@ while ($type)
{
let $binlog_start= query_get_value("SHOW MASTER STATUS", Position, 1);
connection conn1;
if (`select $type = 2`)
if ($type == 2)
{
SET AUTOCOMMIT = 1;
BEGIN;
}
if (`select $type = 1`)
if ($type == 1)
{
SET AUTOCOMMIT = 0;
}
eval UPDATE t SET f = 'yellow $type' WHERE i = 3;
connection conn2;
if (`select $type = 2`)
if ($type == 2)
{
SET AUTOCOMMIT = 1;
BEGIN;
}
if (`select $type = 1`)
if ($type == 1)
{
SET AUTOCOMMIT = 0;
}
@@ -88,24 +88,24 @@ while ($type)
let $binlog_start= query_get_value("SHOW MASTER STATUS", Position, 1);
connection conn1;
if (`select $type = 2`)
if ($type == 2)
{
SET AUTOCOMMIT = 1;
BEGIN;
}
if (`select $type = 1`)
if ($type == 1)
{
SET AUTOCOMMIT = 0;
}
eval UPDATE t SET f = 'gray $type' WHERE i = 3;
connection conn2;
if (`select $type = 2`)
if ($type == 2)
{
SET AUTOCOMMIT = 1;
BEGIN;
}
if (`select $type = 1`)
if ($type == 1)
{
SET AUTOCOMMIT = 0;
}