From: Greg Sabino Mullane Date: Tue, 5 Jul 2011 14:54:53 +0000 (-0400) Subject: Keep the fake schema around, as we modify search_path with ALTER USER X-Git-Tag: 2.18.0~21 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=d9c8a9b7928ea50e0b3e4022e7a8e0644cfb900e;p=check_postgres.git Keep the fake schema around, as we modify search_path with ALTER USER --- 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}/;