mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fixed a few issues with sqlite class.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9645 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
873d3e704a
commit
75478d2757
1 changed files with 10 additions and 2 deletions
|
|
@ -63,13 +63,17 @@
|
|||
return class_exists('PDO');
|
||||
}
|
||||
|
||||
function isConnected() {
|
||||
return $this->is_connected;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DB settings and connect/close
|
||||
**/
|
||||
function _setDBInfo() {
|
||||
$db_info = Context::getDBInfo();
|
||||
$this->database = $db_info->db_database;
|
||||
$this->prefix = $db_info->db_table_prefix;
|
||||
$this->database = $db_info->master_db["db_database"];
|
||||
$this->prefix = $db_info->master_db["db_table_prefix"];
|
||||
if(!substr($this->prefix,-1)!='_') $this->prefix .= '_';
|
||||
}
|
||||
|
||||
|
|
@ -576,6 +580,10 @@
|
|||
return $select . ' ' . $from . ' ' . $where . ' ' . $groupBy . ' ' . $orderBy . ' ' . $limit;
|
||||
}
|
||||
|
||||
function getParser() {
|
||||
return new DBParser('"', '"', $this->prefix);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return new DBSqlite3_pdo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue