rado 0.2.39 → 0.2.40
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.
- package/dist/lib/Formatter.js +1 -1
- package/dist/lib/Statement.js +6 -3
- package/package.json +1 -1
package/dist/lib/Formatter.js
CHANGED
package/dist/lib/Statement.js
CHANGED
|
@@ -170,9 +170,12 @@ class Statement {
|
|
|
170
170
|
return this.sql.replace(/\?/g, () => {
|
|
171
171
|
const param = this.paramData[index];
|
|
172
172
|
index++;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
switch (param.type) {
|
|
174
|
+
case ParamType.Named:
|
|
175
|
+
return `?${param.name}`;
|
|
176
|
+
case ParamType.Value:
|
|
177
|
+
return this.sanitizer.escapeValue(param.value);
|
|
178
|
+
}
|
|
176
179
|
});
|
|
177
180
|
}
|
|
178
181
|
toString() {
|