@ronin/compiler 0.16.1-leo-ron-1099-1-experimental-366 → 0.16.2-leo-ron-1099-1-experimental-367
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/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -821,7 +821,8 @@ var filterSelectedFields = (model, instruction) => {
|
|
821
821
|
var prepareStatementValue = (statementParams, value) => {
|
822
822
|
if (value === null) return "NULL";
|
823
823
|
if (!statementParams) {
|
824
|
-
|
824
|
+
if (typeof value === "string") return `'${value}'`;
|
825
|
+
const valueString = typeof value === "object" ? `json('${JSON.stringify(value, replaceJSON)}')` : value.toString();
|
825
826
|
return valueString;
|
826
827
|
}
|
827
828
|
let formattedValue = value;
|
package/package.json
CHANGED