badmfck-api-server 4.0.89 → 4.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -246,7 +246,7 @@ class DBService extends BaseService_1.BaseService {
|
|
|
246
246
|
if (value === null || value === undefined)
|
|
247
247
|
return 'NULL';
|
|
248
248
|
const stringValue = typeof value === 'object' ? JSON.stringify(value) : String(value);
|
|
249
|
-
return stringValue.replace(/[\0\x08\x09\x1a\n\r"'\\\%]/g, (char) => {
|
|
249
|
+
return "'" + stringValue.replace(/[\0\x08\x09\x1a\n\r"'\\\%]/g, (char) => {
|
|
250
250
|
switch (char) {
|
|
251
251
|
case "\0": return "\\0";
|
|
252
252
|
case "\x08": return "\\b";
|
|
@@ -261,7 +261,7 @@ class DBService extends BaseService_1.BaseService {
|
|
|
261
261
|
return "\\" + char;
|
|
262
262
|
default: return char;
|
|
263
263
|
}
|
|
264
|
-
});
|
|
264
|
+
}) + "'";
|
|
265
265
|
}
|
|
266
266
|
return adapter.escape(value);
|
|
267
267
|
}
|