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