pqb 0.56.12 → 0.56.13

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 CHANGED
@@ -7093,7 +7093,8 @@ const selectToSql = (ctx, table, query, quotedAs, hookSelect = query.hookSelect,
7093
7093
  }
7094
7094
  }
7095
7095
  } else {
7096
- list.push(selectedObjectToSQL(ctx, quotedAs, item));
7096
+ const sql = item.toSQL(ctx, quotedAs);
7097
+ list.push(ctx.aliasValue ? `${sql} ${quotedAs}` : sql);
7097
7098
  aliases?.push("");
7098
7099
  }
7099
7100
  }
@@ -7151,10 +7152,6 @@ const selectToSql = (ctx, table, query, quotedAs, hookSelect = query.hookSelect,
7151
7152
  }
7152
7153
  return list.length ? list.join(", ") : query.select ? "" : selectAllSql(query, quotedAs, jsonList);
7153
7154
  };
7154
- function selectedObjectToSQL(ctx, quotedAs, item) {
7155
- const sql = item.toSQL(ctx, quotedAs);
7156
- return ctx.aliasValue ? `${sql} "${quotedAs}"` : sql;
7157
- }
7158
7155
  const selectAllSql = (query, quotedAs, jsonList) => {
7159
7156
  if (jsonList) {
7160
7157
  Object.assign(jsonList, query.selectAllShape);