1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-04 21:28:02 +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

@@ -20,7 +20,9 @@ dibi::connect(array(
$res = dibi::query('SELECT * FROM [customers]');
$res->setType('customer_id', Dibi::INTEGER)
->setType('added', Dibi::DATETIME);
->setType('added', Dibi::DATETIME)
->setFormat(dibi::DATETIME, 'Y-m-d H:i:s');
Debugger::dump( $res->fetch() );
// outputs: