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