finish preserve_case support
[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 => '',
b511f36e 16 preserve_case_mode_is_exclusive => 1,
17 quote_char => '"',
8a64178e 18 data_types => {
701cd3e3 19 'timestamp DEFAULT CURRENT TIMESTAMP' => { data_type => 'timestamp', default_value => \'current_timestamp',
20 original => { default_value => \'current timestamp' } },
8a64178e 21 },
a78e3fed 22);
23
9e978a19 24if( !$dsn || !$user ) {
25 $tester->skip_tests('You need to set the DBICTEST_DB2_DSN, _USER, and _PASS environment variables');
a78e3fed 26}
27else {
28 $tester->run_tests();
29}
8a64178e 30# vim:et sts=4 sw=4 tw=0: