diff options
-rwxr-xr-x | test/it_dbi.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/it_dbi.t b/test/it_dbi.t index ba8eaeb..42fae74 100755 --- a/test/it_dbi.t +++ b/test/it_dbi.t @@ -346,14 +346,14 @@ $r->update(['key1' => "val1'"], ['key1' => "4"]); is($r->key1, "val1'"); # UPDATE (without and with quoting) $r->update(['key1' => "val1'", 'key2' => "ö"]); is($r->key1, "val1'"); is($r->key2, "ö"); # check mariadb bug $r->update(['-key2' => "1*2"]); is($r->key1, "val1'"); is($r->key2, 2); -$r->update(['key2' => "val2'"]); is($r->key1, "val1'"); is($r->key2, "val2'"); -$r->update(['-key3' => "1*3"]); is($r->key1, "val1'"); is($r->key2, "val2'"); is($r->key3, 3); -$r->update(['key1' => "val0'"]); is($r->key1, "val0'"); is($r->key2, "val2'"); is($r->key3, 3); +$r->update(['key2' => "val2\""]); is($r->key1, "val1'"); is($r->key2, "val2\""); +$r->update(['-key3' => "1*3"]); is($r->key1, "val1'"); is($r->key2, "val2\""); is($r->key3, 3); +$r->update(['key1' => "val0'"]); is($r->key1, "val0'"); is($r->key2, "val2\""); is($r->key3, 3); $r->update(['key1' => "val/'"]); is($r->key1, "val/'"); # check json encoding # Check for mistakenly inherited fields $r->replace(['ID' => 6, 'key4' => "val4'"]); is($r->key4, "val4'"); -$r->select(['key2' => "val2'"]); is($r->key2, "val2'"); is($r->key4, null, "cleared previous fields?"); +$r->select(['key2' => "val2\""]); is($r->key2, "val2\""); is($r->key4, null, "cleared previous fields?"); # Check removal of unnecessary writes $r->_writes = 0; |