X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F15sybase_common.t;h=f8ed46e682f495231a3b46112963a161f3dba559;hb=804c115dd211c89d1ab9317ee12b2af6063164b9;hp=5bb0578fad741d4ae947d854b3ded4f2bce61d69;hpb=96f6886949908716c9e9bea2373a3c0ff1eda891;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/15sybase_common.t b/t/15sybase_common.t index 5bb0578..f8ed46e 100644 --- a/t/15sybase_common.t +++ b/t/15sybase_common.t @@ -1,9 +1,7 @@ use strict; use lib qw(t/lib); use dbixcsl_common_tests; - -# You need the sybase branch of DBIx::Class, from: -# http://dev.catalyst.perl.org/repos/bast/DBIx-Class/0.08/branches/sybase +use Test::More; my $dsn = $ENV{DBICTEST_SYBASE_DSN} || ''; my $user = $ENV{DBICTEST_SYBASE_USER} || ''; @@ -15,6 +13,31 @@ my $tester = dbixcsl_common_tests->new( dsn => $dsn, user => $user, password => $password, + extra => { + create => [ + q{ + CREATE TABLE sybase_loader_test1 ( + id INTEGER IDENTITY NOT NULL PRIMARY KEY, + ts timestamp + ) + }, + ], + drop => [ qw/ sybase_loader_test1 / ], + count => 1, + run => sub { + my ($schema, $monikers, $classes) = @_; + + my $rs = $schema->resultset($monikers->{sybase_loader_test1}); + + { + local $TODO = 'timestamp introspection broken'; + + is $rs->result_source->column_info('ts')->{data_type}, + 'timestamp', + 'timestamps have the correct data_type'; + } + }, + }, ); if( !$dsn || !$user ) {