sqlparser-devexpress 2.4.0 → 2.4.1
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/package.json +1 -1
- package/src/core/converter.js +2 -2
package/package.json
CHANGED
package/src/core/converter.js
CHANGED
|
@@ -111,8 +111,8 @@ function DevExpressConverter() {
|
|
|
111
111
|
|
|
112
112
|
// Detect and flatten nested logical expressions
|
|
113
113
|
if (parentOperator === null) {
|
|
114
|
-
if (left.length === 3 && LOGICAL_OPERATORS.includes(left[1])) parentOperator = left[1];
|
|
115
|
-
if (right.length === 3 && LOGICAL_OPERATORS.includes(right[1])) parentOperator = right[1];
|
|
114
|
+
if (left && left.length === 3 && LOGICAL_OPERATORS.includes(left[1])) parentOperator = left[1];
|
|
115
|
+
if (right && right.length === 3 && LOGICAL_OPERATORS.includes(right[1])) parentOperator = right[1];
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
// Flatten nested logical expressions if applicable
|