use Test::More;
use Test::Exception;
+use Try::Tiny;
+use DBIx::Class::SQLMaker::LimitDialects;
+use DBIx::Class::Optional::Dependencies ();
use lib qw(t/lib);
use DBICTest;
use DBIC::SqlMakerTest;
-use Try::Tiny;
-use DBIx::Class::SQLMaker::LimitDialects;
+plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_rdbms_mssql_odbc')
+ unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_rdbms_mssql_odbc');
+
my $OFFSET = DBIx::Class::SQLMaker::LimitDialects->__offset_bindtype;
my $TOTAL = DBIx::Class::SQLMaker::LimitDialects->__total_bindtype;
});
TODO: {
- local $TODO =
+ my $freetds_and_dynamic_cursors = 1
+ if $opts_name eq 'use_dynamic_cursors' &&
+ $schema->storage->using_freetds;
+
+ local $TODO =
'these tests fail on freetds with dynamic cursors for some reason'
- if $opts_name eq 'use_dynamic_cursors'
- && $schema->storage->using_freetds;
+ if $freetds_and_dynamic_cursors;
+ local $ENV{DBIC_NULLABLE_KEY_NOWARN} = 1
+ if $freetds_and_dynamic_cursors;
my $rs = $schema->resultset('Money');
my $row;