mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
DibiDriver::doQuery returns TRUE or DibiResult
This commit is contained in:
@@ -77,10 +77,9 @@ class DibiSqliteDriver extends DibiDriver
|
||||
if ($res === FALSE) {
|
||||
$code = sqlite_last_error($connection);
|
||||
throw new DibiDatabaseException(sqlite_error_string($code), $code, $sql);
|
||||
|
||||
} elseif (is_resource($res)) {
|
||||
return new DibiSqliteResult($res);
|
||||
}
|
||||
|
||||
return is_resource($res) ? new DibiSqliteResult($res) : TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user