X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F72pg.t;h=45e614fb3ff15a008ae8f4634ff26d057b6afa0b;hb=0a62f675479175606ba25cc28e0c28fb17425b0d;hp=f0c45455b65696f5d7c66b1d4a547a8551af2890;hpb=71a390611dc6b9a17cd684fbcfd8249fd33322b7;p=dbsrgits%2FDBIx-Class.git diff --git a/t/72pg.t b/t/72pg.t index f0c4545..45e614f 100644 --- a/t/72pg.t +++ b/t/72pg.t @@ -38,13 +38,11 @@ use DBICTest; my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_PG_${_}" } qw/DSN USER PASS/}; -#warn "$dsn $user $pass"; - plan skip_all => 'Set $ENV{DBICTEST_PG_DSN}, _USER and _PASS to run this test '. '(note: This test drops and creates tables called \'artist\', \'casecheck\', \'array_test\' and \'sequence_test\''. ' as well as following sequences: \'pkid1_seq\', \'pkid2_seq\' and \'nonpkid_seq\''. ' as well as following schemas: \'testschema\'!)' - unless ($dsn && $user && $pass); + unless ($dsn && $user); plan tests => 37; @@ -155,7 +153,7 @@ SKIP: { my $count; lives_ok { $count = $schema->resultset('ArrayTest')->search({ - arrayfield => \[ '= ?' => [3, 4] ], #TODO anything less ugly than this? + arrayfield => \[ '= ?' => [arrayfield => [3, 4]] ], #TODO anything less ugly than this? })->count; } 'comparing arrayref to pg array data does not blow up'; is($count, 1, 'comparing arrayref to pg array data gives correct result');