mirror of
https://github.com/dg/dibi.git
synced 2025-08-09 23:56:58 +02:00
- removed 'FIELD_' from dibi data types
This commit is contained in:
@@ -15,8 +15,8 @@ dibi::connect(array(
|
||||
$res = dibi::query('SELECT * FROM [customers]');
|
||||
|
||||
// auto-converts this column to integer
|
||||
$res->setType('customer_id', Dibi::FIELD_INTEGER);
|
||||
$res->setType('added', Dibi::FIELD_DATETIME, 'H:i j.n.Y');
|
||||
$res->setType('customer_id', Dibi::INTEGER);
|
||||
$res->setType('added', Dibi::DATETIME, 'H:i j.n.Y');
|
||||
|
||||
$row = $res->fetch();
|
||||
Debug::dump($row);
|
||||
|
Reference in New Issue
Block a user