3 my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_PG_${_}" } qw/DSN USER PASS/};
5 #warn "$dsn $user $pass";
7 plan skip_all, 'Set $ENV{DBICTEST_PG_DSN}, _USER and _PASS to run this test'
8 unless ($dsn && $user);
12 DBICTest::Schema->compose_connection('PgTest' => $dsn, $user, $pass);
14 my $dbh = PgTest::Artist->storage->dbh;
17 $dbh->do("DROP TABLE artist;");
20 $dbh->do("CREATE TABLE artist (artistid serial PRIMARY KEY, name VARCHAR(255));");
22 PgTest::Artist->load_components('PK::Auto::Pg');
24 my $new = PgTest::Artist->create({ name => 'foo' });
26 ok($new->artistid, "Auto-PK worked");