Merge 'mssql_tweaks' into 'current'
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 15sybase_common.t
index bce97e1..06ff9c0 100644 (file)
@@ -2,18 +2,19 @@ use strict;
 use lib qw(t/lib);
 use dbixcsl_common_tests;
 
-# you need maxConnect=256 in your DSN for this test to pass
-
 my $dsn      = $ENV{DBICTEST_SYBASE_DSN} || '';
 my $user     = $ENV{DBICTEST_SYBASE_USER} || '';
 my $password = $ENV{DBICTEST_SYBASE_PASS} || '';
 
 my $tester = dbixcsl_common_tests->new(
-    vendor      => 'Sybase',
+    vendor      => 'sybase',
     auto_inc_pk => 'INTEGER IDENTITY NOT NULL PRIMARY KEY',
     dsn         => $dsn,
     user        => $user,
     password    => $password,
+# This is necessary because there are too many cursors open for transactions on
+# insert to work.
+    connect_info_opts => { on_connect_call => 'unsafe_insert' }
 );
 
 if( !$dsn || !$user ) {