summaryrefslogtreecommitdiff
path: root/test/it_dbi.t
diff options
context:
space:
mode:
authorUrban Müller2021-01-18 13:17:21 +0100
committerUrban Müller2021-01-18 13:17:21 +0100
commit6ebf739b59022622033d4face9db3cb6988121f1 (patch)
tree9b382643283e762cd41883ecf5ff3e97ecf527aa /test/it_dbi.t
parent2990ce3e7448571d1d780c8f1fe4e83aa485f11f (diff)
downloaditools-6ebf739b59022622033d4face9db3cb6988121f1.tar.gz
itools-6ebf739b59022622033d4face9db3cb6988121f1.tar.bz2
itools-6ebf739b59022622033d4face9db3cb6988121f1.zip
test correct escaping using character that actually needs it
Diffstat (limited to 'test/it_dbi.t')
-rwxr-xr-xtest/it_dbi.t8
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;