Skip to content

Commit

Permalink
Fix #12675: Upgrade failure due to missing database name in Connect call
Browse files Browse the repository at this point in the history
PostgreSQL upgrades were failing with the following error message:

"Attempting to connect to database as admin BAD"

This was due to a Connect() call missing an explicit definition of the
database name.

Signed-off-by: David Hicks <d@hx.id.au>
  • Loading branch information
2color authored and davidhicks committed Mar 25, 2011
1 parent 43f2050 commit d33f80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/install.php
Expand Up @@ -573,7 +573,7 @@ function InsertData( $p_table, $p_data ) {
} else {
// create db
$g_db = ADONewConnection( $f_db_type );
$t_result = $g_db->Connect( $f_hostname, $f_admin_username, $f_admin_password );
$t_result = $g_db->Connect( $f_hostname, $f_admin_username, $f_admin_password, $f_database_name );

$dict = NewDataDictionary( $g_db );

Expand Down

0 comments on commit d33f80d

Please sign in to comment.