summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/it_dbi.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/it_dbi.t b/tests/it_dbi.t
index 3428c0f..3ee2562 100755
--- a/tests/it_dbi.t
+++ b/tests/it_dbi.t
@@ -132,6 +132,18 @@ is(
"update"
);
+is(
+ $record->update(array('x' => 18), array('x' => 17)),
+ 1,
+ "return affected rows",
+);
+
+is(
+ $record->update(array('x' => 18), array('x' => 17)),
+ 0,
+ "return zero affected rows",
+);
+
$record->update(array('-x' => 'RAND() * 10'));
isnt(
array($record->_key, $record->x, $record->foo),