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