Skip to content

Commit

Permalink
Postgresql does not like modified prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
paca70 committed Sep 24, 2004
1 parent 55bcf88 commit ba1ceab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion auth/db/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ba1ceab

Please sign in to comment.