From: Rafael Kitover Date: Sun, 16 May 2010 17:29:14 +0000 (+0000) Subject: add sql_maker to @rdbms_specific_methods X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0a064375d784ed0ae14c345c5766db048abb8a2b;p=dbsrgits%2FDBIx-Class-Historic.git add sql_maker to @rdbms_specific_methods --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index 4214463..09417af 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -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 diff --git a/t/74mssql.t b/t/74mssql.t index f8b3849..b56c7e0 100644 --- a/t/74mssql.t +++ b/t/74mssql.t @@ -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