add sql_maker to @rdbms_specific_methods
Rafael Kitover [Sun, 16 May 2010 17:29:14 +0000 (17:29 +0000)]
lib/DBIx/Class/Storage/DBI.pm
t/74mssql.t

index 4214463..09417af 100644 (file)
@@ -47,6 +47,7 @@ __PACKAGE__->sql_maker_class('DBIx::Class::SQLAHacks');
 my @rdbms_specific_methods = qw/
   deployment_statements
   sqlt_type
+  sql_maker
   build_datetime_parser
   datetime_parser_type
 
index f8b3849..b56c7e0 100644 (file)
@@ -204,6 +204,15 @@ SQL
     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