Author: turnstep
Date: Sat Jan 19 20:43:53 2008
New Revision: 10622
Modified:
DBD-Pg/trunk/t/dbdpg_test_setup.pl
Log:
Handle case where we don't have permission to create a schema in the test
database.
Modified: DBD-Pg/trunk/t/dbdpg_test_setup.pl
==============================================================================
--- DBD-Pg/trunk/t/dbdpg_test_setup.pl (original)
+++ DBD-Pg/trunk/t/dbdpg_test_setup.pl Sat Jan 19 20:43:53 2008
@@ -94,7 +94,10 @@
else {
cleanup_database($dbh);
- $dbh->do("CREATE SCHEMA $S");
+ eval {
+ $dbh->do("CREATE SCHEMA $S");
+ };
+ $@ and return $helpconnect, $@, undef;
$dbh->do("SET search_path TO $S");
$dbh->do('CREATE SEQUENCE dbd_pg_testsequence');
# If you add columns to this, please do not use reserved words!