Fix a bazillion tests with ANSI sql_mode, and get rid of a bunch of MySQLDump usage.

This commit is contained in:
Baron Schwartz
2012-06-09 14:43:33 -04:00
parent 8e9dfeec68
commit 47fb3d65e8
54 changed files with 3583 additions and 2357 deletions

View File

@@ -59,10 +59,10 @@ is(
"Empty --review table"
);
$dbh->do('insert into test.query_review values
(1, "select * from tbl where id=? order by col",
"select * from tbl where id=42 order by col",
NOW(), NOW(), NULL, NULL, NULL)');
$dbh->do("insert into test.query_review values
(1, 'select * from tbl where id=? order by col',
'select * from tbl where id=42 order by col',
NOW(), NOW(), NULL, NULL, NULL)");
ok(
no_diff(
@@ -72,10 +72,10 @@ ok(
"--review with one bad query"
);
$dbh->do('insert into test.query_review values
(2, "select col from tbl2 where id=? order by col limit ?",
"select col from tbl2 where id=52 order by col limit 10",
NOW(), NOW(), NULL, NULL, NULL)');
$dbh->do("insert into test.query_review values
(2, 'select col from tbl2 where id=? order by col limit ?',
'select col from tbl2 where id=52 order by col limit 10',
NOW(), NOW(), NULL, NULL, NULL)");
ok(
no_diff(