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

@@ -23,7 +23,7 @@ if ( !$dbh ) {
plan skip_all => 'Cannot connect to sandbox master';
}
else {
plan tests => 21;
plan tests => 23;
}
my $output;
@@ -40,10 +40,18 @@ like(
'Prints tables without any tests'
);
# These tests are going to be senstive to your sakila db. Hopefully,
# it matches mine which I tend to load fresh and not modify. For example,
# the next insert id for sakila.film is expected to be 1001. If this
# becomes an issue, I may commit my copy of the sakila db to Google Code.
$output = `$cmd --view .`;
like(
$output,
qr/`sakila`.`sales_by_store`/,
'Prints views'
);
unlike(
$output,
qr/`sakila`.`actor`/,
'Does not print non-views'
);
SKIP: {
skip 'Sandbox master does not have the sakila database', 17