Small fix DatabaseMysql

master
Vitaliy Filippov 2013-11-15 22:23:05 +00:00
parent f3c4baefe3
commit 9dc7e13788
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,7 @@ class DatabaseMysql implements Database
} }
else else
{ {
$this->transactions = array();
$this->link->set_charset('utf8'); $this->link->set_charset('utf8');
if ($this->autoBegin) if ($this->autoBegin)
{ {
@ -349,6 +350,7 @@ class DatabaseMysql implements Database
{ {
if (!$v) if (!$v)
{ {
// FIXME: It seems we should return empty result in that case
throw new DatabaseException("Error: empty array for '$k IN (...)', don't know what to do"); throw new DatabaseException("Error: empty array for '$k IN (...)', don't know what to do");
} }
else else