Fixed regexp bug in the Database class

This commit is contained in:
Dmitriy Simushev 2012-07-31 08:49:12 +00:00
parent 91c5ca45ae
commit ba5259b36c

View File

@ -254,7 +254,7 @@ Class Database{
*/
public function query($query, $values = NULL, $params = array()){
try{
$query = preg_replace("/\{(\S+)\}/", $this->tablesPrefix."$1", $query);
$query = preg_replace("/\{(\w+)\}/", $this->tablesPrefix."$1", $query);
$query_key = md5($query);
if (! array_key_exists($query_key, $this->preparedStatements)) {