summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2011-07-05 14:54:53 +0000
committerGreg Sabino Mullane2011-07-05 14:54:53 +0000
commitd9c8a9b7928ea50e0b3e4022e7a8e0644cfb900e (patch)
tree0dbbd1e06237979d21cf1ed9648bdb64c685ae2c
parentd8b32795fc8107c2b880b0a93e6cfce1144d4eaf (diff)
Keep the fake schema around, as we modify search_path with ALTER USER
-rw-r--r--t/CP_Testing.pm10
1 files changed, 0 insertions, 10 deletions
diff --git a/t/CP_Testing.pm b/t/CP_Testing.pm
index 7ef1b1152..3e79454b1 100644
--- a/t/CP_Testing.pm
+++ b/t/CP_Testing.pm
@@ -335,16 +335,6 @@ sub test_database_handle {
$dbh->{AutoCommit} = 0;
$dbh->{RaiseError} = 1;
- if (! exists $self->{keep_old_schema}) {
- $SQL = 'SELECT count(*) FROM pg_namespace WHERE nspname = ' . $dbh->quote($fakeschema);
- my $count = $dbh->selectall_arrayref($SQL)->[0][0];
- if ($count) {
- $dbh->{Warn} = 0;
- $dbh->do("DROP SCHEMA $fakeschema CASCADE");
- $dbh->{Warn} = 1;
- }
- }
-
if ($arg->{dbname} ne $self->{dbname}) {
my $tmp_dsn = $dsn;
$tmp_dsn =~ s/dbname=\w+/dbname=$arg->{dbname}/;