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 +2 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7091,7 +7091,8 @@ const selectToSql = (ctx, table, query, quotedAs, hookSelect = query.hookSelect,
|
|
|
7091
7091
|
}
|
|
7092
7092
|
}
|
|
7093
7093
|
} else {
|
|
7094
|
-
|
|
7094
|
+
const sql = item.toSQL(ctx, quotedAs);
|
|
7095
|
+
list.push(ctx.aliasValue ? `${sql} ${quotedAs}` : sql);
|
|
7095
7096
|
aliases?.push("");
|
|
7096
7097
|
}
|
|
7097
7098
|
}
|
|
@@ -7149,10 +7150,6 @@ const selectToSql = (ctx, table, query, quotedAs, hookSelect = query.hookSelect,
|
|
|
7149
7150
|
}
|
|
7150
7151
|
return list.length ? list.join(", ") : query.select ? "" : selectAllSql(query, quotedAs, jsonList);
|
|
7151
7152
|
};
|
|
7152
|
-
function selectedObjectToSQL(ctx, quotedAs, item) {
|
|
7153
|
-
const sql = item.toSQL(ctx, quotedAs);
|
|
7154
|
-
return ctx.aliasValue ? `${sql} "${quotedAs}"` : sql;
|
|
7155
|
-
}
|
|
7156
7153
|
const selectAllSql = (query, quotedAs, jsonList) => {
|
|
7157
7154
|
if (jsonList) {
|
|
7158
7155
|
Object.assign(jsonList, query.selectAllShape);
|