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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user