@prisma-next/sql-orm-client 0.9.0-dev.1 → 0.9.0-dev.3
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 +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
- package/src/query-plan-aggregate.ts +3 -0
- package/src/query-plan-meta.ts +1 -1
- package/src/where-binding.ts +3 -0
package/dist/index.mjs
CHANGED
|
@@ -441,7 +441,7 @@ function capabilityFlag(contract, flag) {
|
|
|
441
441
|
//#endregion
|
|
442
442
|
//#region src/query-plan-meta.ts
|
|
443
443
|
function deriveParamsFromAst(ast) {
|
|
444
|
-
return { params: collectOrderedParamRefs(ast).map((p) => p.value) };
|
|
444
|
+
return { params: collectOrderedParamRefs(ast).map((p) => p.kind === "param-ref" ? p.value : void 0) };
|
|
445
445
|
}
|
|
446
446
|
function resolveTableColumns(contract, tableName) {
|
|
447
447
|
const table = contract.storage.tables[tableName];
|
|
@@ -557,6 +557,9 @@ function validateGroupedHavingExpr(expr) {
|
|
|
557
557
|
param() {
|
|
558
558
|
throw new Error("ParamRef is not supported in grouped having expressions");
|
|
559
559
|
},
|
|
560
|
+
preparedParam() {
|
|
561
|
+
throw new Error("PreparedParamRef is not supported in grouped having expressions");
|
|
562
|
+
},
|
|
560
563
|
list: rejectHavingExpr,
|
|
561
564
|
and(expr) {
|
|
562
565
|
return AndExpr.of(expr.exprs.map((child) => validateGroupedHavingExpr(child)));
|
|
@@ -767,6 +770,9 @@ function bindWhereExprNode(contract, expr) {
|
|
|
767
770
|
param(expr) {
|
|
768
771
|
return expr;
|
|
769
772
|
},
|
|
773
|
+
preparedParam(expr) {
|
|
774
|
+
return expr;
|
|
775
|
+
},
|
|
770
776
|
list(expr) {
|
|
771
777
|
return bindExpression(contract, expr);
|
|
772
778
|
},
|