We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9bdb37 commit 8977365Copy full SHA for 8977365
src/find-options/FindOperator.ts
@@ -1,5 +1,6 @@
1
import {FindOperatorType} from "./FindOperatorType";
2
import {Connection} from "../";
3
+import {OracleDriver} from "../driver/oracle/OracleDriver";
4
5
/**
6
* Find Operator used in Find Conditions.
@@ -107,6 +108,9 @@ export class FindOperator<T> {
107
108
case "between":
109
return `${aliasPath} BETWEEN ${parameters[0]} AND ${parameters[1]}`;
110
case "in":
111
+ if (connection.driver instanceof OracleDriver && parameters.length === 0) {
112
+ return `${aliasPath} IN (null)`;
113
+ }
114
return `${aliasPath} IN (${parameters.join(", ")})`;
115
case "any":
116
return `${aliasPath} = ANY(${parameters[0]})`;
0 commit comments