1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-16 19:14:17 +02:00
This commit is contained in:
David Grudl
2007-08-23 00:57:28 +00:00
parent 2c6608f817
commit 05b8c0ad43
10 changed files with 101 additions and 5 deletions

View File

@@ -77,36 +77,42 @@ class DibiPdoDriver extends DibiDriver
}
public function affectedRows()
{
return $this->affectedRows;
}
public function insertId()
{
return $this->getConnection()->lastInsertId();
}
public function begin()
{
return $this->getConnection()->beginTransaction();
}
public function commit()
{
return $this->getConnection()->commit();
}
public function rollback()
{
return $this->getConnection()->rollBack();
}
public function errorInfo()
{
$error = $this->getConnection()->errorInfo();
@@ -118,6 +124,7 @@ class DibiPdoDriver extends DibiDriver
}
public function escape($value, $appendQuotes = TRUE)
{
if (!$appendQuotes) {
@@ -128,6 +135,7 @@ class DibiPdoDriver extends DibiDriver
}
public function delimite($value)
{
// quoting is not supported by PDO
@@ -175,29 +183,34 @@ class DibiPdoResult extends DibiResult
}
public function rowCount()
{
return $this->resource->rowCount();
}
protected function doFetch()
{
return $this->resource->fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_NEXT, $this->row++);
}
public function seek($row)
{
$this->row = $row;
}
protected function free()
{
}
/** this is experimental */
protected function buildMeta()
{