summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNathan Gass2023-01-19 19:23:44 +0100
committerNathan Gass2023-01-19 19:23:44 +0100
commitc5df4dfb8914886e0b49be5736d5b891ec0364dd (patch)
tree94dcc2886b6474ca125e24be1e1cd68f4f4ed0f5 /test
parent399bc5c45f0b74feee825e75a39003d1bf286112 (diff)
downloaditools-c5df4dfb8914886e0b49be5736d5b891ec0364dd.tar.gz
itools-c5df4dfb8914886e0b49be5736d5b891ec0364dd.tar.bz2
itools-c5df4dfb8914886e0b49be5736d5b891ec0364dd.zip
add urbans tests
Diffstat (limited to 'test')
-rwxr-xr-xtest/it_dbi.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/it_dbi.t b/test/it_dbi.t
index ac6d526..eef2632 100755
--- a/test/it_dbi.t
+++ b/test/it_dbi.t
@@ -203,6 +203,11 @@ $record->update(['z' => $value]);
is($record->z, $value, "update 64bit integer without double representation");
is($record->select(['z' => $value]), 1, "select 64bit integer without double representation");
+$record->update(['foo' => "10", 'x' => 10]);
+is($record->select(['x <' => 9]), 0, "always use integer comparision for int field");
+is($record->select(['x <' => '9']), 0, "always use integer comparision for int field");
+is($record->select(['foo <' => 9]), 1, "always use string comparision for varchar field");
+is($record->select(['foo <' => '9']), 1, "always use string comparision for varchar field");
$record->update(['foo' => "00"]);
$rand = $record->x;