mirror of
https://github.com/dg/dibi.git
synced 2025-08-16 19:14:17 +02:00
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user