my $tester = dbixcsl_common_tests->new(
vendor => 'sybase',
auto_inc_pk => 'INTEGER IDENTITY NOT NULL PRIMARY KEY',
+ default_function => 'getdate()',
+ default_function_def => 'AS getdate()',
dsn => $dsn,
user => $user,
password => $password,
CREATE TABLE sybase_loader_test1 (
id INTEGER IDENTITY NOT NULL PRIMARY KEY,
ts timestamp,
- charfield VARCHAR(10) DEFAULT 'foo',
computed_dt AS getdate()
)
},
},
],
drop => [ qw/ sybase_loader_test1 sybase_loader_test2 / ],
- count => 38,
+ count => 36,
run => sub {
my ($schema, $monikers, $classes) = @_;
'timestamp',
'timestamps have the correct data_type';
- is $rsrc->column_info('charfield')->{data_type},
- 'varchar',
- 'VARCHAR has correct data_type';
-
- is $rsrc->column_info('charfield')->{default_value},
- 'foo',
- 'constant DEFAULT is correct';
-
- is $rsrc->column_info('charfield')->{size},
- 10,
- 'VARCHAR(10) has correct size';
+ is $rsrc->column_info('ts')->{inflate_datetime},
+ 0,
+ 'timestamps have inflate_datetime => 0';
ok ((exists $rsrc->column_info('computed_dt')->{data_type}
&& (not defined $rsrc->column_info('computed_dt')->{data_type})),