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:
ucorina 2011-10-13 17:10:43 +00:00
parent 873d3e704a
commit 75478d2757

View file

@ -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;