1 package # Hide from PAUSE
4 # Test class for the testing of Implicit inflation
5 # in CDBI Classes using Compat layer
6 # See t/cdbi/70-implicit_inflate.t
11 use base 'DBIC::Test::SQLite';
13 __PACKAGE__->set_table('Date');
15 __PACKAGE__->columns( Primary => 'id' );
16 __PACKAGE__->columns( All => qw/ update_datetime text/);
19 update_datetime => 'MyDateStamp',
23 # Disables the implicit autoinc-on-non-supplied-pk behavior
24 # (and the warning that goes with it)
25 # This is the same behavior as it was pre 0.082900
26 __PACKAGE__->column_info('id')->{is_auto_increment} = 0;
29 # SQLite doesn't support Datetime datatypes.
31 id INTEGER PRIMARY KEY,
40 use DateTime::Format::SQLite;
43 my ($self, $value) = @_;
44 return DateTime::Format::SQLite->parse_datetime($value);