diff DBD/monetdb.pm @ 17:8a0be77580c3

Use raw strings for string parameters to prepared SQL queries. As part of this, the string prefix is changed to r' instead of plain '.
author Sjoerd Mullender <sjoerd@acm.org>
date Thu, 09 Apr 2020 16:11:32 +0200 (2020-04-09)
parents 8c8bd15f7a0b
children 1bdbb3ca1ae0
line wrap: on
line diff
--- a/DBD/monetdb.pm
+++ b/DBD/monetdb.pm
@@ -102,9 +102,6 @@ sub quote {
     $value = Encode::encode_utf8($value);
 
     for ($value) {
-      s/\\/\\\\/g;
-      s/\n/\\n/g;
-      s/"/\\"/g;
       s/'/''/g;
     }