mirror of
https://github.com/dg/dibi.git
synced 2025-08-13 09:34:30 +02:00
DibiDriver::doQuery returns TRUE or DibiResult
This commit is contained in:
@@ -64,16 +64,14 @@ class DibiPdoDriver extends DibiDriver
|
||||
protected function doQuery($sql)
|
||||
{
|
||||
$res = $this->getConnection()->query($sql);
|
||||
if ($res instanceof PDOStatement) {
|
||||
return new DibiPdoResult($res);
|
||||
}
|
||||
return $res instanceof PDOStatement ? new DibiPdoResult($res) : TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function affectedRows()
|
||||
{
|
||||
// not implemented
|
||||
throw new DibiException(__METHOD__ . ' is not implemented');
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user