mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
Disable mysql DB driver and only use mysqli
This commit is contained in:
parent
52627de4a3
commit
3f4f5299cb
1 changed files with 5 additions and 2 deletions
|
|
@ -24,7 +24,6 @@ class DB
|
||||||
*/
|
*/
|
||||||
protected static $priority_dbms = array(
|
protected static $priority_dbms = array(
|
||||||
'mysqli' => 6,
|
'mysqli' => 6,
|
||||||
'mysql' => 4,
|
|
||||||
'cubrid' => 2,
|
'cubrid' => 2,
|
||||||
'mssql' => 1
|
'mssql' => 1
|
||||||
);
|
);
|
||||||
|
|
@ -271,9 +270,13 @@ class DB
|
||||||
// after creating instance of class, check is supported
|
// after creating instance of class, check is supported
|
||||||
foreach ($supported_list as $db_type)
|
foreach ($supported_list as $db_type)
|
||||||
{
|
{
|
||||||
|
if (strncasecmp($db_type, 'mysql', 5) === 0 && strtolower($db_type) !== 'mysqli')
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$class_name = sprintf("DB%s%s", strtoupper(substr($db_type, 0, 1)), strtolower(substr($db_type, 1)));
|
$class_name = sprintf("DB%s%s", strtoupper(substr($db_type, 0, 1)), strtolower(substr($db_type, 1)));
|
||||||
$class_file = sprintf(_XE_PATH_ . "classes/db/%s.class.php", $class_name);
|
$class_file = sprintf(_XE_PATH_ . "classes/db/%s.class.php", $class_name);
|
||||||
if(!file_exists($class_file) || stripos($class_file, '_innodb') !== false)
|
if (!file_exists($class_file))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue