@zenstackhq/orm 3.9.7-beta.1 → 3.9.7
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.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +204 -200
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -2068,7 +2068,11 @@ var PostgresCrudDialect = class PostgresCrudDialect extends LateralJoinDialectBa
|
|
|
2068
2068
|
if (columnResolved.sqlType === "uuid" && (op === "=" || op === "!=")) {
|
|
2069
2069
|
const value = valueNode.value;
|
|
2070
2070
|
if (typeof value === "string" && PostgresCrudDialect.uuidFormatRegex.test(value)) return this.eb(left, op, right);
|
|
2071
|
-
else
|
|
2071
|
+
else if (op === "=") return this.eb.lit(false);
|
|
2072
|
+
else {
|
|
2073
|
+
const column = valueNode === rightNode ? left : right;
|
|
2074
|
+
return this.eb(column, "is not", null);
|
|
2075
|
+
}
|
|
2072
2076
|
}
|
|
2073
2077
|
}
|
|
2074
2078
|
getStringCasingBehavior() {
|