'Set $ENV{DBICTEST_SYBASE_DSN}, _USER and _PASS to run this test' .
"\nWarning: This test drops and creates the tables " .
"'artist' and 'bindtype_test'";
+} else {
+ plan tests => $TESTS*2 + 1;
}
my @storage_types = (
'DBI::Sybase',
'DBI::Sybase::NoBindVars',
);
+my $schema;
+my $storage_idx = -1;
+
sub get_schema {
DBICTest::Schema->connect($dsn, $user, $pass, {
on_connect_call => [
};
}
-my $schema;
-my $storage_idx = -1;
-
for my $storage_type (@storage_types) {
$storage_idx++;
- _run_tests ($storage);
-}
-
-
-
-is $ping_count, 0, 'no pings';
-
-
-sub _run_tests {
unless ($storage_type eq 'DBI::Sybase') { # autodetect
DBICTest::Schema->storage_type("::$storage_type");
}
diag $@ if $@;
}
+is $ping_count, 0, 'no pings';
+
# clean up our mess
END {
if (my $dbh = eval { $schema->storage->_dbh }) {