[Bast-commits] r9394 - in DBIx-Class/0.08/trunk:
lib/DBIx/Class/Storage t
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Sun May 16 17:29:14 GMT 2010
Author: caelum
Date: 2010-05-16 18:29:14 +0100 (Sun, 16 May 2010)
New Revision: 9394
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm
DBIx-Class/0.08/trunk/t/74mssql.t
Log:
add sql_maker to @rdbms_specific_methods
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm 2010-05-16 15:47:01 UTC (rev 9393)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm 2010-05-16 17:29:14 UTC (rev 9394)
@@ -47,6 +47,7 @@
my @rdbms_specific_methods = qw/
deployment_statements
sqlt_type
+ sql_maker
build_datetime_parser
datetime_parser_type
Modified: DBIx-Class/0.08/trunk/t/74mssql.t
===================================================================
--- DBIx-Class/0.08/trunk/t/74mssql.t 2010-05-16 15:47:01 UTC (rev 9393)
+++ DBIx-Class/0.08/trunk/t/74mssql.t 2010-05-16 17:29:14 UTC (rev 9394)
@@ -204,6 +204,15 @@
ok (($have_rno == $rno_detected),
'row_number() over support detected correctly');
}
+
+ {
+ my $schema = DBICTest::Schema->clone;
+ $schema->connection($dsn, $user, $pass);
+
+ like $schema->storage->sql_maker->{limit_dialect},
+ qr/^(?:Top|RowNumberOver)\z/,
+ 'sql_maker is correct on unconnected schema';
+ }
}
# test op-induced autoconnect
More information about the Bast-commits
mailing list