X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F73oracle_blob.t;h=d067c2b6143cac3c359976ad85075b7ddb7fd705;hb=4c0829325108ab553f442e1553469db9d6ef5851;hp=22a98c4f84e429022ec79c451e8b3b208ec1b05d;hpb=28916ecdc2d6c5d420bfb1bd5987df4953f31e28;p=dbsrgits%2FDBIx-Class.git diff --git a/t/73oracle_blob.t b/t/73oracle_blob.t index 22a98c4..d067c2b 100644 --- a/t/73oracle_blob.t +++ b/t/73oracle_blob.t @@ -1,13 +1,12 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } +use DBIx::Class::Optional::Dependencies -skip_all_without => 'test_rdbms_oracle'; + use strict; use warnings; use Test::Exception; use Test::More; -use Sub::Name; use Try::Tiny; -use DBIx::Class::Optional::Dependencies (); - -use lib qw(t/lib); use DBICTest::Schema::BindType; BEGIN { @@ -25,18 +24,12 @@ BEGIN { use DBICTest; -my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_ORA_${_}" } qw/DSN USER PASS/}; - -plan skip_all => 'Set $ENV{DBICTEST_ORA_DSN}, _USER and _PASS to run this test.' - unless ($dsn && $user && $pass); - -plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_rdbms_oracle') - unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_rdbms_oracle'); - $ENV{NLS_SORT} = "BINARY"; $ENV{NLS_COMP} = "BINARY"; $ENV{NLS_LANG} = "AMERICAN"; +my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_ORA_${_}" } qw/DSN USER PASS/}; + my $v = do { my $si = DBICTest::Schema->connect($dsn, $user, $pass)->storage->_server_info; $si->{normalized_dbms_version} @@ -131,7 +124,7 @@ SKIP: { { blob => "blob:$str", clob => "clob:$str" }, { from => \ "(SELECT * FROM ${q}bindtype_test${q} WHERE ${q}id${q} != ?) ${q}me${q}", - bind => [ [ undef => 12345678 ] ], + bind => [ [ {} => 12345678 ] ], } )->get_column('id')->as_query);