Proper support for timestamp inflation. Added last_updated_at to DBICTest::Schema...
[dbsrgits/DBIx-Class.git] / t / 72pg.t
index aafe301..2178ce0 100644 (file)
--- 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;");
     }
 }
-