From ba1ceab2f5296c75ca52d93c0f71c3cc905c9d9f Mon Sep 17 00:00:00 2001 From: paca70 Date: Fri, 24 Sep 2004 08:36:05 +0000 Subject: [PATCH] Postgresql does not like modified prefix --- auth/db/lib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/auth/db/lib.php b/auth/db/lib.php index fbc23641ad..ad51337ae6 100644 --- a/auth/db/lib.php +++ b/auth/db/lib.php @@ -12,7 +12,10 @@ function auth_user_login ($username, $password) { // two databases of the same kind ... it seems to get confused when trying to access // the first database again, after having accessed the second. // The following hack will make the database explicit which keeps it happy - $CFG->prefix = "$CFG->dbname.$CFG->prefix"; + // This seems to broke postgesql so .. + if ($CFG->dbtype != 'postgres7') { + $CFG->prefix = "$CFG->dbname.$CFG->prefix"; + } // Connect to the external database $authdb = &ADONewConnection($CFG->auth_dbtype); -- 2.39.5