diff options
author | Urban Müller | 2020-04-21 15:17:27 +0200 |
---|---|---|
committer | Urban Müller | 2020-04-21 15:17:56 +0200 |
commit | d92fe0ee371ef220e3407a52af7a4229d57204be (patch) | |
tree | 54f58ac63c7114fc54a686d389987025754f3d37 /test/it_dbi.t | |
parent | 6a80c9eb76c5828ae1584bab1019fd05eaf84984 (diff) | |
download | itools-d92fe0ee371ef220e3407a52af7a4229d57204be.tar.gz itools-d92fe0ee371ef220e3407a52af7a4229d57204be.tar.bz2 itools-d92fe0ee371ef220e3407a52af7a4229d57204be.zip |
test for safe LIMIT
Diffstat (limited to 'test/it_dbi.t')
-rwxr-xr-x | test/it_dbi.t | 2 |
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); |