summaryrefslogtreecommitdiff
path: root/tests/it_dbi.t
diff options
context:
space:
mode:
authorChristian Schneider2009-08-25 17:53:16 +0000
committerChristian Schneider2009-08-25 17:53:16 +0000
commita04073131d35ba78af4a009c4699cc4895c96f7f (patch)
tree3b7237165e8f067042f8f3b3f38253a59ae1d834 /tests/it_dbi.t
parent21aae88fc189bc2672ef563f6ed7ae42a3b8634e (diff)
downloaditools-a04073131d35ba78af4a009c4699cc4895c96f7f.tar.gz
itools-a04073131d35ba78af4a009c4699cc4895c96f7f.tar.bz2
itools-a04073131d35ba78af4a009c4699cc4895c96f7f.zip
Added array support to NI operator
Diffstat (limited to 'tests/it_dbi.t')
-rwxr-xr-xtests/it_dbi.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/it_dbi.t b/tests/it_dbi.t
index faf243d..4404247 100755
--- a/tests/it_dbi.t
+++ b/tests/it_dbi.t
@@ -54,6 +54,11 @@ is(
"select with IN"
);
is(
+ $record->select(array('ID NI' => array(2,3))),
+ 2,
+ "select with NI"
+);
+is(
$record->select(array('ID NOT IN' => array(2,3))),
1,
"select with NOT IN"
@@ -131,7 +136,7 @@ $record->update(array('-x' => 'RAND() * 10'));
isnt(
array($record->_key, $record->x, $record->foo),
array(3, 17, "q'uux"),
- "update"
+ "update with function"
);
$rand = $record->x;