diff options
| author | lsces <lester@lsces.co.uk> | 2026-04-05 10:57:31 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-04-05 10:57:31 +0100 |
| commit | bac9e94152757395cff16c46e03e775248896965 (patch) | |
| tree | bc750d05ac944543771be879e29b5be3486e5977 | |
| parent | f6e277c44862e46ab5ff3c82299216421237b927 (diff) | |
| download | kernel-bac9e94152757395cff16c46e03e775248896965.tar.gz kernel-bac9e94152757395cff16c46e03e775248896965.tar.bz2 kernel-bac9e94152757395cff16c46e03e775248896965.zip | |
ADOdb needs a few little changes to properly handle pdo drivers. Currently hard coded for pdo-firebird but should get the right driver from the Hostname
| -rwxr-xr-x | includes/classes/BitDbAdodb.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/classes/BitDbAdodb.php b/includes/classes/BitDbAdodb.php index 515a87d..59ef505 100755 --- a/includes/classes/BitDbAdodb.php +++ b/includes/classes/BitDbAdodb.php @@ -77,7 +77,7 @@ class BitDbAdodb extends BitDb { if( $pConnectionHash['db_type'] != 'pdo' ) { $this->mDb->Connect( $pConnectionHash['db_host'], $pConnectionHash['db_user'], $pConnectionHash['db_password'], $pConnectionHash['db_name'] ); $split = explode( ':', $gBitDbHost ); - $this->mType = 'pdo_' . $split[0]; + $this->mType = 'pdo-' . $split[0]; } else { // $dsnString = $pConnectionHash['db_type'] . ':host=localhost;dbname=' . $pConnectionHash['db_name']; $this->mDb->Connect( $pConnectionHash['db_host'], $pConnectionHash['db_user'], $pConnectionHash['db_password'] ); |
