summaryrefslogtreecommitdiff
path: root/test/it_dbi.t
diff options
context:
space:
mode:
authorUrban Müller2020-04-21 15:17:27 +0200
committerUrban Müller2020-04-21 15:17:56 +0200
commitd92fe0ee371ef220e3407a52af7a4229d57204be (patch)
tree54f58ac63c7114fc54a686d389987025754f3d37 /test/it_dbi.t
parent6a80c9eb76c5828ae1584bab1019fd05eaf84984 (diff)
downloaditools-d92fe0ee371ef220e3407a52af7a4229d57204be.tar.gz
itools-d92fe0ee371ef220e3407a52af7a4229d57204be.tar.bz2
itools-d92fe0ee371ef220e3407a52af7a4229d57204be.zip
test for safe LIMIT
Diffstat (limited to 'test/it_dbi.t')
-rwxr-xr-xtest/it_dbi.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/it_dbi.t b/test/it_dbi.t
index 165861f..dbcc6bb 100755
--- a/test/it_dbi.t
+++ b/test/it_dbi.t
@@ -349,7 +349,7 @@ $r->update(['key4' => "val4'", 'key5' => "val5'"]); is($r->_writes, 1); is($r-
$r->update(['key4' => "val4'", 'key5' => "val5'"]); is($r->_writes, 1); is($r->key4, "val4'"); is($r->key5, "val5'");
# Check LIMIT
-$count = $r->select('ID >' => 0, 'ORDER BY ID DESC', 'LIMIT' => 1);
+$count = $r->select(['ID >' => 0, 'ORDER BY ID DESC', 'LIMIT' => 1]);
is($count, 1);
is($r->ID, 6);