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