use strict;
-use warnings;
+use warnings;
use Test::More;
use Test::Exception;
my $schema;
+SKIP:
for my $connect_info (@connect_info) {
my ($dsn, $user, $pass) = @$connect_info;
on_connect_call => 'datetime_setup'
});
+ {
+ my $w;
+ local $SIG{__WARN__} = sub { $w = shift };
+ $schema->storage->ensure_connected;
+ if ($w =~ /Your DBD::Sybase is too old to support DBIx::Class::InflateColumn::DateTime/) {
+ skip "Skipping tests on old DBD::Sybase " . DBD::Sybase->VERSION, 1;
+ }
+ }
+
my $guard = Scope::Guard->new(\&cleanup);
# coltype, column, datehash