add note about sybase dbic branch
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 15sybase_common.t
1 use strict;
2 use lib qw(t/lib);
3 use dbixcsl_common_tests;
4
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
8 my $dsn      = $ENV{DBICTEST_SYBASE_DSN} || '';
9 my $user     = $ENV{DBICTEST_SYBASE_USER} || '';
10 my $password = $ENV{DBICTEST_SYBASE_PASS} || '';
11
12 my $tester = dbixcsl_common_tests->new(
13     vendor      => 'sybase',
14     auto_inc_pk => 'INTEGER IDENTITY NOT NULL PRIMARY KEY',
15     dsn         => $dsn,
16     user        => $user,
17     password    => $password,
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' }
21 );
22
23 if( !$dsn || !$user ) {
24     $tester->skip_tests('You need to set the DBICTEST_SYBASE_DSN, _USER, and _PASS environment variables');
25 }
26 else {
27     $tester->run_tests();
28 }