@ruiapp/rapid-core 0.1.80 → 0.1.81
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
|
@@ -598,7 +598,12 @@ function buildInFilterQuery(ctx, filter) {
|
|
|
598
598
|
if (ctx.paramToLiteral) ;
|
|
599
599
|
else {
|
|
600
600
|
ctx.params.push(filter.value);
|
|
601
|
-
|
|
601
|
+
if (filter.operator === "in") {
|
|
602
|
+
command += `ANY($${ctx.params.length}::${filter.itemType || "int"}[])`;
|
|
603
|
+
}
|
|
604
|
+
else {
|
|
605
|
+
command += `ALL($${ctx.params.length}::${filter.itemType || "int"}[])`;
|
|
606
|
+
}
|
|
602
607
|
}
|
|
603
608
|
return command;
|
|
604
609
|
}
|
package/package.json
CHANGED
|
@@ -472,7 +472,11 @@ function buildInFilterQuery(ctx: BuildQueryContext, filter: FindRowSetFilterOpti
|
|
|
472
472
|
// TODO: implement it
|
|
473
473
|
} else {
|
|
474
474
|
ctx.params.push(filter.value);
|
|
475
|
-
|
|
475
|
+
if (filter.operator === "in") {
|
|
476
|
+
command += `ANY($${ctx.params.length}::${filter.itemType || "int"}[])`;
|
|
477
|
+
} else {
|
|
478
|
+
command += `ALL($${ctx.params.length}::${filter.itemType || "int"}[])`;
|
|
479
|
+
}
|
|
476
480
|
}
|
|
477
481
|
|
|
478
482
|
return command;
|