Author: turnstep
Date: Mon Mar 28 10:27:05 2011
New Revision: 14794
Modified:
DBD-Pg/trunk/t/12placeholders.t
Log:
Fix for bug 61534: reset the search_path so we don't create the // operator in
the pg_catalog schema.
Modified: DBD-Pg/trunk/t/12placeholders.t
==============================================================================
--- DBD-Pg/trunk/t/12placeholders.t (original)
+++ DBD-Pg/trunk/t/12placeholders.t Mon Mar 28 10:27:05 2011
@@ -445,6 +445,7 @@
$sth->execute('pg_catalog');
};
is ($@, q{}, $t);
+$dbh->do(q{SET search_path TO DEFAULT});
$t='Prepare/execute does not allow geometric operators';
$dbh->commit();
@@ -515,7 +516,6 @@
skip 'Cannot run some quote tests on very old versions of Postgres', 14
if $pgversion < 80000;
$t='Prepare works with placeholders after double slashes';
-## TODO: Fix with a perms check per bug 61534
eval {
$dbh->do(q{CREATE OPERATOR // ( PROCEDURE=bit, LEFTARG=int,
RIGHTARG=int )});
$sth = $dbh->prepare(q{SELECT ? // ?});