Skip to content

Commit

Permalink
fix for 006722: Remaining mysqli_ install problems (ref. #0006672): m…
Browse files Browse the repository at this point in the history
…ysqli_real_escape_string() expects parameter 1 to be link

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/branches/BRANCH_1_0_0@3989 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
thraxisp committed Feb 18, 2006
1 parent ee6dfc3 commit f1fff7f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/install.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: install.php,v 1.22.10.1 2006-02-08 03:04:05 thraxisp Exp $
# $Id: install.php,v 1.22.10.2 2006-02-18 04:18:59 thraxisp Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -491,6 +491,7 @@ function InsertData( $p_table, $p_data ) {
# install the tables
if ( false == $g_failed ) {
$g_db_connected = false; # fake out database access routines used by config_get
$GLOBALS['g_db_type'] = $f_db_type; # database_api references this
require_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'schema.php' );
$g_db = ADONewConnection( $f_db_type );
$t_result = @$g_db->Connect( $f_hostname, $f_admin_username, $f_admin_password, $f_database_name );
Expand Down
9 changes: 9 additions & 0 deletions core/adodb/adodb.inc.php
Expand Up @@ -3722,6 +3722,15 @@ function _adodb_getdriver($provider,$drivername,$perf=false)
}

switch($drivername) {
case 'mysqlt':
case 'mysqli':
$drivername='mysql';
break;
case 'postgres7':
case 'postgres8':
$drivername = 'postgres';
break;
case 'firebird15': $drivername = 'firebird'; break;
case 'oracle': $drivername = 'oci8'; break;
case 'access': if ($perf) $drivername = ''; break;
case 'db2' : break;
Expand Down

0 comments on commit f1fff7f

Please sign in to comment.