c21fec898b0557ca4b54a9e8dc0e4cffbd1862eb
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 13db2_common.t
1 use strict;
2 use lib qw(t/lib);
3 use dbixcsl_common_tests;
4
5 my $dsn      = $ENV{DBICTEST_DB2_DSN} || '';
6 my $user     = $ENV{DBICTEST_DB2_USER} || '';
7 my $password = $ENV{DBICTEST_DB2_PASS} || '';
8
9 my $tester = dbixcsl_common_tests->new(
10     vendor         => 'DB2',
11     auto_inc_pk    => 'INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY',
12     dsn            => $dsn,
13     user           => $user,
14     password       => $password,
15     null           => '',
16     data_types => {
17         'timestamp default current timestamp' => { data_type => 'timestamp', default_value => \'current_timestamp' }
18     },
19 );
20
21 if( !$dsn || !$user ) {
22     $tester->skip_tests('You need to set the DBICTEST_DB2_DSN, _USER, and _PASS environment variables');
23 }
24 else {
25     $tester->run_tests();
26 }
27 # vim:et sts=4 sw=4 tw=0: