pqb 0.46.3 → 0.46.4
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4453,7 +4453,7 @@ class RowToJsonExpression extends orchidCore.Expression {
|
|
|
4453
4453
|
let rowToJson;
|
|
4454
4454
|
if (Object.values(jsonList).some((x) => x?.data.jsonCast)) {
|
|
4455
4455
|
rowToJson = `json_build_object(${Object.entries(jsonList).map(
|
|
4456
|
-
([key, column]) => `'${key}', t
|
|
4456
|
+
([key, column]) => `'${key}', t."${key}"${column?.data.jsonCast ? `::${column.data.jsonCast}` : ""}`
|
|
4457
4457
|
).join(", ")})`;
|
|
4458
4458
|
} else {
|
|
4459
4459
|
rowToJson = "row_to_json(t.*)";
|