1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-13 01:24:06 +02:00

* removed variables $insertId & $affectedRows

This commit is contained in:
David Grudl
2007-08-28 22:13:53 +00:00
parent 0ff0cd21df
commit 6f4d2c545d
8 changed files with 115 additions and 103 deletions

View File

@@ -22,8 +22,6 @@ if (!class_exists('dibi', FALSE)) die();
*/
class DibiPdoDriver extends DibiDriver
{
private $affectedRows = FALSE;
public
$formats = array(
'TRUE' => "1",
@@ -65,25 +63,25 @@ class DibiPdoDriver extends DibiDriver
public function nativeQuery($sql)
{
$this->affectedRows = FALSE;
// TODO: or exec() ?
$res = $this->getConnection()->query($sql);
if ($res === FALSE) return FALSE;
if ($res === FALSE) {
return FALSE;
if ($res instanceof PDOStatement) {
} elseif ($res instanceof PDOStatement) {
return new DibiPdoResult($res);
}
return TRUE;
} else {
return TRUE;
}
}
public function affectedRows()
{
return $this->affectedRows;
// not implemented
}