X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F746sybase.t;h=7fcffb4fd44e56ae6913409b9e59d168f8872fd0;hb=f62c57241fe47b0fe4ee5147f9a9b78f8d9725d1;hp=2210db782773a6534d4b3e3544ff79fb822f8fb5;hpb=cdf7f026f607854a455e15b682c4b72160c63065;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/746sybase.t b/t/746sybase.t index 2210db7..7fcffb4 100644 --- a/t/746sybase.t +++ b/t/746sybase.t @@ -1,12 +1,16 @@ use strict; -use warnings; +use warnings; no warnings 'uninitialized'; use Test::More; use Test::Exception; +use DBIx::Class::Optional::Dependencies (); use lib qw(t/lib); use DBICTest; +plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_rdbms_ase') + unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_rdbms_ase'); + my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_SYBASE_${_}" } qw/DSN USER PASS/}; my $TESTS = 66 + 2; @@ -346,10 +350,11 @@ SQL $dbh->do(qq[ CREATE TABLE bindtype_test ( - id INT IDENTITY PRIMARY KEY, - bytea IMAGE NULL, - blob IMAGE NULL, - clob TEXT NULL + id INT IDENTITY PRIMARY KEY, + bytea IMAGE NULL, + blob IMAGE NULL, + clob TEXT NULL, + a_memo IMAGE NULL ) ],{ RaiseError => 1, PrintError => 0 }); } @@ -438,12 +443,10 @@ SQL lives_ok { $rs->populate([ { - bytea => 1, blob => $binstr{large}, clob => $new_str, }, { - bytea => 1, blob => $binstr{large}, clob => $new_str, }, @@ -471,12 +474,14 @@ SQL bytea => 1, blob => $binstr{large}, clob => $new_str, + a_memo => 2, }, { id => 2, bytea => 1, blob => $binstr{large}, clob => $new_str, + a_memo => 2, }, ]); } 'insert_bulk with blobs and explicit identity does NOT die';