X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F72pg.t;h=2178ce060b488d563768befc342fc22253030eff;hb=32b24bace23cf9718fb209638f8cd51c479a1a43;hp=aafe30107e3f791f899fa6718f9d1dc5ec2309d2;hpb=c3af542ac1f57914b3e1045e1367d1b0be8409e5;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/72pg.t b/t/72pg.t index aafe301..2178ce0 100644 --- a/t/72pg.t +++ b/t/72pg.t @@ -19,12 +19,11 @@ use DBICTest; __PACKAGE__->column_info_from_storage(1); __PACKAGE__->set_primary_key('id'); -sub store_column { + sub store_column { my ($self, $name, $value) = @_; $value = '#'.$value if($name eq "storecolumn"); $self->maybe::next::method($name, $value); -} - + } } { @@ -163,7 +162,7 @@ is_deeply($type_info, $test_type_info, my $count; lives_ok { $count = $schema->resultset('ArrayTest')->search({ - arrayfield => \[ '= ?' => [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'); @@ -256,19 +255,15 @@ SKIP: { }); } -#SKIP: { - #skip "Oracle Auto-PK tests are broken", 16; - - # test auto increment using sequences WITHOUT triggers - for (1..5) { +for (1..5) { my $st = $schema->resultset('SequenceTest')->create({ name => 'foo' }); is($st->pkid1, $_, "Oracle Auto-PK without trigger: First primary key"); is($st->pkid2, $_ + 9, "Oracle Auto-PK without trigger: Second primary key"); is($st->nonpkid, $_ + 19, "Oracle Auto-PK without trigger: Non-primary key"); - } - my $st = $schema->resultset('SequenceTest')->create({ name => 'foo', pkid1 => 55 }); - is($st->pkid1, 55, "Oracle Auto-PK without trigger: First primary key set manually"); -#} +} +my $st = $schema->resultset('SequenceTest')->create({ name => 'foo', pkid1 => 55 }); +is($st->pkid1, 55, "Oracle Auto-PK without trigger: First primary key set manually"); + END { if($dbh) { @@ -282,4 +277,3 @@ END { $dbh->do("DROP SCHEMA testschema;"); } } -