]> git.mjollnir.org Git - moodle.git/commitdiff
Postgresql does not like modified prefix
authorpaca70 <paca70>
Fri, 24 Sep 2004 08:36:05 +0000 (08:36 +0000)
committerpaca70 <paca70>
Fri, 24 Sep 2004 08:36:05 +0000 (08:36 +0000)
auth/db/lib.php

index fbc23641adbd7de97d45b9230946e72942cd2c4d..ad51337ae6e71fc4d76dc9d727aa30ba9851b200 100644 (file)
@@ -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);