We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
{__raw: ...}
1 parent 774b9d3 commit ec00429Copy full SHA for ec00429
lib/MySQLTable.js
@@ -1,5 +1,12 @@
1
'use strict';
2
3
+const util = require('util');
4
+
5
+const returnDeprecatedRaw = util.deprecate(
6
+ raw => raw,
7
+ '[mysql-plus] {__raw: ...} objects are deprected and will not be supported starting in v0.14.0.'
8
+);
9
10
/**
11
* A class that provides convenient methods for performing queries.<br>To create
12
* an instance, use {@link PoolPlus#defineTable|`poolPlus.defineTable()`} or
@@ -462,7 +469,7 @@ class MySQLTable {
462
469
463
470
_rawEscape(value) {
464
471
return value && value.__raw !== undefined
465
- ? value.__raw
472
+ ? returnDeprecatedRaw(value.__raw)
466
473
: this._db.escape(value);
467
474
}
468
475
0 commit comments