Skip to content

Commit

Permalink
Fix: 0004819: Use of persistent connections prevents upgrade
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3101 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
mantis committed Nov 6, 2004
1 parent b770979 commit dfd87e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/database_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: database_api.php,v 1.34 2004-09-27 19:33:09 prichards Exp $
# $Id: database_api.php,v 1.35 2004-11-06 18:44:39 prichards Exp $
# --------------------------------------------------------

### Database ###
Expand All @@ -28,10 +28,10 @@

# --------------------
# Make a connection to the database
function db_connect( $p_hostname, $p_username, $p_password, $g_database_name ) {
function db_connect( $p_hostname, $p_username, $p_password, $p_database_name ) {
global $g_db_connected, $g_db;

$t_result = $g_db->Connect($p_hostname, $p_username, $p_password, $g_database_name );
$t_result = $g_db->Connect($p_hostname, $p_username, $p_password, $p_database_name );

if ( !$t_result ) {
db_error();
Expand All @@ -46,10 +46,10 @@ function db_connect( $p_hostname, $p_username, $p_password, $g_database_name ) {

# --------------------
# Make a persistent connection to the database
function db_pconnect( $p_hostname, $p_username, $p_password, $p_port, $g_database_name ) {
function db_pconnect( $p_hostname, $p_username, $p_password, $p_database_name ) {
global $g_db_connected, $g_db;

$t_result = $g_db->PConnect($p_hostname, $p_username, $p_password, $g_database_name );
$t_result = $g_db->PConnect($p_hostname, $p_username, $p_password, $p_database_name );
if ( !$t_result ) {
db_error();
trigger_error( ERROR_DB_CONNECT_FAILED, ERROR );
Expand Down

0 comments on commit dfd87e6

Please sign in to comment.