summaryrefslogtreecommitdiff
path: root/tests/it_dbi.t
diff options
context:
space:
mode:
authorChristian Weber2012-05-18 14:48:00 +0000
committerChristian Weber2012-05-18 14:48:00 +0000
commit6829130db749903ca012e09bc0ba19aaca000449 (patch)
treed8f6ff5b101e7c8323857108bdc800dd2124959a /tests/it_dbi.t
parent4e7764843f21338aa2f9e80c2c16b30bad005108 (diff)
downloaditools-6829130db749903ca012e09bc0ba19aaca000449.tar.gz
itools-6829130db749903ca012e09bc0ba19aaca000449.tar.bz2
itools-6829130db749903ca012e09bc0ba19aaca000449.zip
use IN instead of = if value is an array
Diffstat (limited to 'tests/it_dbi.t')
-rwxr-xr-xtests/it_dbi.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/it_dbi.t b/tests/it_dbi.t
index ecd40e3..762e81f 100755
--- a/tests/it_dbi.t
+++ b/tests/it_dbi.t
@@ -73,6 +73,11 @@ is(
3,
"select with empty NOT IN"
);
+is(
+ $record->select(array('ID' => array(2,3))),
+ 2,
+ "select with implicit IN"
+);
it_dbi::createclass(array('table' => "it_dbi_test", 'forcecreate' => true));