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.mjs CHANGED
@@ -4451,7 +4451,7 @@ class RowToJsonExpression extends Expression {
4451
4451
  let rowToJson;
4452
4452
  if (Object.values(jsonList).some((x) => x?.data.jsonCast)) {
4453
4453
  rowToJson = `json_build_object(${Object.entries(jsonList).map(
4454
- ([key, column]) => `'${key}', t.${key}${column?.data.jsonCast ? `::${column.data.jsonCast}` : ""}`
4454
+ ([key, column]) => `'${key}', t."${key}"${column?.data.jsonCast ? `::${column.data.jsonCast}` : ""}`
4455
4455
  ).join(", ")})`;
4456
4456
  } else {
4457
4457
  rowToJson = "row_to_json(t.*)";