@ronin/compiler 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -106,7 +106,10 @@ var splitQuery = (query) => {
|
|
106
106
|
// src/utils/statement.ts
|
107
107
|
var prepareStatementValue = (statementParams, value) => {
|
108
108
|
if (value === null) return "NULL";
|
109
|
-
if (!statementParams)
|
109
|
+
if (!statementParams) {
|
110
|
+
const valueString = typeof value === "object" ? JSON.stringify(value) : value.toString();
|
111
|
+
return `'${valueString}'`;
|
112
|
+
}
|
110
113
|
let formattedValue = value;
|
111
114
|
if (Array.isArray(value) || isObject(value)) {
|
112
115
|
formattedValue = JSON.stringify(value);
|