semanticdb-core 1.1.4 → 1.1.5
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.
|
@@ -353,11 +353,10 @@ const isSimpleQuery = (logicform) => {
|
|
|
353
353
|
return false;
|
|
354
354
|
if (logicform.having && Object.keys(logicform.having).length > 0)
|
|
355
355
|
return false;
|
|
356
|
-
|
|
357
|
-
.
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
return true;
|
|
356
|
+
return (logicform.preds || [])
|
|
357
|
+
.every((predItem) => typeof predItem === 'string' ||
|
|
358
|
+
!predItem.operator ||
|
|
359
|
+
predItem.operator === '$dateLevel' // dateLevel是row based operator,以后想办法把这个逻辑抽象出来
|
|
360
|
+
);
|
|
362
361
|
};
|
|
363
362
|
exports.isSimpleQuery = isSimpleQuery;
|