mirror of
https://github.com/dg/dibi.git
synced 2025-10-21 01:36:26 +02:00
DibiDriver::doQuery returns TRUE or DibiResult
This commit is contained in:
@@ -105,10 +105,9 @@ class DibiMySqlDriver extends DibiDriver
|
||||
|
||||
if ($res === FALSE) {
|
||||
throw new DibiDatabaseException(mysql_error($connection), mysql_errno($connection), $sql);
|
||||
|
||||
} elseif (is_resource($res)) {
|
||||
return new DibiMySqlResult($res);
|
||||
}
|
||||
|
||||
return is_resource($res) ? new DibiMySqlResult($res) : TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user