mirror of
https://github.com/dg/dibi.git
synced 2025-08-13 09:34:30 +02:00
- new DibiTable constructor
- moved "tricky clone" from DibiConnection::query to IDibiDriver::query
This commit is contained in:
@@ -118,7 +118,7 @@ class DibiPdoDriver extends /*Nette::*/Object implements IDibiDriver
|
||||
* Executes the SQL query.
|
||||
*
|
||||
* @param string SQL statement.
|
||||
* @return bool have resultset?
|
||||
* @return IDibiDriver|NULL
|
||||
* @throws DibiDriverException
|
||||
*/
|
||||
public function query($sql)
|
||||
@@ -135,7 +135,7 @@ class DibiPdoDriver extends /*Nette::*/Object implements IDibiDriver
|
||||
$this->throwException($sql);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return NULL;
|
||||
|
||||
} else {
|
||||
$this->resultset = $this->connection->query($sql);
|
||||
@@ -145,7 +145,7 @@ class DibiPdoDriver extends /*Nette::*/Object implements IDibiDriver
|
||||
$this->throwException($sql);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return clone $this;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user