1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-08 15:16:58 +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

@@ -10,7 +10,7 @@ $conn->loadFile(__DIR__ . "/data/$config[system].sql");
$res = $conn->query('SELECT * FROM [customers]');
// auto-converts this column to integer
$res->setType('customer_id', Dibi::DATETIME, 'H:i j.n.Y');
$res->setType('customer_id', DibiType::DATETIME, 'H:i j.n.Y');
Assert::equal(new DibiRow([
'customer_id' => new DibiDateTime('1970-01-01 01:00:01'),