diff options
| author | Nathan Gass | 2023-01-19 19:23:44 +0100 | 
|---|---|---|
| committer | Nathan Gass | 2023-01-19 19:23:44 +0100 | 
| commit | c5df4dfb8914886e0b49be5736d5b891ec0364dd (patch) | |
| tree | 94dcc2886b6474ca125e24be1e1cd68f4f4ed0f5 | |
| parent | 399bc5c45f0b74feee825e75a39003d1bf286112 (diff) | |
| download | itools-c5df4dfb8914886e0b49be5736d5b891ec0364dd.tar.gz itools-c5df4dfb8914886e0b49be5736d5b891ec0364dd.tar.bz2 itools-c5df4dfb8914886e0b49be5736d5b891ec0364dd.zip | |
add urbans tests
| -rwxr-xr-x | test/it_dbi.t | 5 | 
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; |