mirror of
https://github.com/dg/dibi.git
synced 2025-08-30 01:09:50 +02:00
- new DibiTable constructor
- moved "tricky clone" from DibiConnection::query to IDibiDriver::query
This commit is contained in:
@@ -136,7 +136,7 @@ class DibiPostgreDriver extends /*Nette::*/Object implements IDibiDriver
|
||||
*
|
||||
* @param string SQL statement.
|
||||
* @param bool update affected rows?
|
||||
* @return bool have resultset?
|
||||
* @return IDibiDriver|NULL
|
||||
* @throws DibiDriverException
|
||||
*/
|
||||
public function query($sql)
|
||||
@@ -147,7 +147,7 @@ class DibiPostgreDriver extends /*Nette::*/Object implements IDibiDriver
|
||||
throw new DibiDriverException(pg_last_error($this->connection), 0, $sql);
|
||||
}
|
||||
|
||||
return is_resource($this->resultset) && pg_num_fields($this->resultset);
|
||||
return is_resource($this->resultset) && pg_num_fields($this->resultset) ? clone $this : NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user