X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F72pg.t;fp=t%2F72pg.t;h=ee6db29bb145bd575fbffc8246c0aa0d32fa0515;hb=38d5ea9f06646beb01422d3d6a2994f1601bf35e;hp=9251caa05a9d18c70182d5adfe6f88d729e32f03;hpb=03e0b38766f8b4476261bc0d720b7644b65cec30;p=dbsrgits%2FDBIx-Class.git diff --git a/t/72pg.t b/t/72pg.t index 9251caa..ee6db29 100644 --- a/t/72pg.t +++ b/t/72pg.t @@ -265,11 +265,13 @@ my $st = $schema->resultset('SequenceTest')->create({ name => 'foo', pkid1 => 55 is($st->pkid1, 55, "Auto-PK for sequence without default: First primary key set manually"); -######## test non-integer non-serial auto-pk +######## test non-serial auto-pk -$schema->source('TimestampPrimaryKey')->name('dbic_t_schema.timestamp_primary_key_test'); -my $row = $schema->resultset('TimestampPrimaryKey')->create({}); -ok $row->id; +if ($schema->storage->can_insert_returning) { + $schema->source('TimestampPrimaryKey')->name('dbic_t_schema.timestamp_primary_key_test'); + my $row = $schema->resultset('TimestampPrimaryKey')->create({}); + ok $row->id; +} ######## test with_deferred_fk_checks