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