X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F02mysql-parser.t;h=903dfe65c3f57ca3d38a563aabb1db2cad860e34;hb=6d80a12008c5cdb4690201259bd4323f55ec6712;hp=1ed700178eee7008a6ab8fe4f6b4f3719792e18c;hpb=f5fd433f1b17eaf0d0904f0fd486c92772d07a56;p=dbsrgits%2FSQL-Translator.git diff --git a/t/02mysql-parser.t b/t/02mysql-parser.t index 1ed7001..903dfe6 100644 --- a/t/02mysql-parser.t +++ b/t/02mysql-parser.t @@ -581,7 +581,11 @@ BEGIN { my $t1f2 = shift @fields; is( $t1f2->data_type, 'timestamp', 'Field is a timestamp' ); ok( !$t1f2->is_nullable, 'Field is not nullable' ); - is( $t1f2->default_value, 'CURRENT_TIMESTAMP', 'Field has right default value' ); + is_deeply( + $t1f2->default_value, + \'CURRENT_TIMESTAMP', + 'Field has right default value' + ); is( $t1f2->extra('on update'), 'CURRENT_TIMESTAMP', 'Field has right on update qualifier' ); my @views = $schema->get_views;