File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { FindOperatorType } from "./FindOperatorType" ;
2
2
import { Connection } from "../" ;
3
3
import { OracleDriver } from "../driver/oracle/OracleDriver" ;
4
+ import { MysqlDriver } from "../driver/mysql/MysqlDriver" ;
4
5
5
6
/**
6
7
* Find Operator used in Find Conditions.
@@ -108,9 +109,9 @@ export class FindOperator<T> {
108
109
case "between" :
109
110
return `${ aliasPath } BETWEEN ${ parameters [ 0 ] } AND ${ parameters [ 1 ] } ` ;
110
111
case "in" :
111
- if ( connection . driver instanceof OracleDriver && parameters . length === 0 ) {
112
+ if ( ( connection . driver instanceof OracleDriver || connection . driver instanceof MysqlDriver ) && parameters . length === 0 ) {
112
113
return `${ aliasPath } IN (null)` ;
113
- }
114
+ }
114
115
return `${ aliasPath } IN (${ parameters . join ( ", " ) } )` ;
115
116
case "any" :
116
117
return `${ aliasPath } = ANY(${ parameters [ 0 ] } )` ;
@@ -127,4 +128,4 @@ export class FindOperator<T> {
127
128
return "" ;
128
129
}
129
130
130
- }
131
+ }
You can’t perform that action at this time.
0 commit comments