1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-31 09:41:43 +02:00

type constants dibi::* moved to new class Type

This commit is contained in:
David Grudl
2015-10-07 23:37:58 +02:00
parent 785a021b8d
commit ae68965710
9 changed files with 87 additions and 53 deletions

View File

@@ -22,9 +22,9 @@ dibi::connect([
// using manual hints
$res = dibi::query('SELECT * FROM [customers]');
$res->setType('customer_id', Dibi::INTEGER)
->setType('added', Dibi::DATETIME)
->setFormat(dibi::DATETIME, 'Y-m-d H:i:s');
$res->setType('customer_id', DibiType::INTEGER)
->setType('added', DibiType::DATETIME)
->setFormat(DibiType::DATETIME, 'Y-m-d H:i:s');
Tracy\Dumper::dump($res->fetch());