Merge 'mssql_tweaks' into 'current'
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 15sybase_common.t
CommitLineData
fe67d343 1use strict;
2use lib qw(t/lib);
3use dbixcsl_common_tests;
4
5my $dsn = $ENV{DBICTEST_SYBASE_DSN} || '';
6my $user = $ENV{DBICTEST_SYBASE_USER} || '';
7my $password = $ENV{DBICTEST_SYBASE_PASS} || '';
8
9my $tester = dbixcsl_common_tests->new(
7cb9244f 10 vendor => 'sybase',
fe67d343 11 auto_inc_pk => 'INTEGER IDENTITY NOT NULL PRIMARY KEY',
12 dsn => $dsn,
13 user => $user,
14 password => $password,
7cb9244f 15# This is necessary because there are too many cursors open for transactions on
16# insert to work.
17 connect_info_opts => { on_connect_call => 'unsafe_insert' }
fe67d343 18);
19
20if( !$dsn || !$user ) {
21 $tester->skip_tests('You need to set the DBICTEST_SYBASE_DSN, _USER, and _PASS environment variables');
22}
23else {
24 $tester->run_tests();
25}