mirror of
https://github.com/dg/dibi.git
synced 2025-08-30 17:29:53 +02:00
DibiDriver::doQuery returns TRUE or DibiResult
This commit is contained in:
@@ -99,10 +99,9 @@ class DibiPostgreDriver extends DibiDriver
|
||||
|
||||
if ($res === FALSE) {
|
||||
throw new DibiDatabaseException(pg_last_error($connection), 0, $sql);
|
||||
|
||||
} elseif (is_resource($res)) {
|
||||
return new DibiPostgreResult($res);
|
||||
}
|
||||
|
||||
return is_resource($res) ? new DibiPostgreResult($res) : TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user