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

DibiResult: added setFormat()

This commit is contained in:
David Grudl
2012-01-18 21:08:34 +01:00
parent b964887f9d
commit ea0d6d02ba
3 changed files with 37 additions and 14 deletions

View File

@@ -480,7 +480,8 @@ class DibiConnection extends DibiObject
*/
public function createResultSet(IDibiResultDriver $resultDriver)
{
return new DibiResult($resultDriver, $this->config['result']);
$res = new DibiResult($resultDriver);
return $res->setFormat(dibi::DATETIME, $this->config['result']['formatDateTime']);
}