π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(noco-sdk): revert parenthesis related changes
Ramesh Mane7b1d9ffae037
diff --git a/packages/nocodb-sdk/src/lib/parser/queryFilter/query-filter-parser.ts b/packages/nocodb-sdk/src/lib/parser/queryFilter/query-filter-parser.tsindex 0d34124b5e..5f8334e264 100644--- a/packages/nocodb-sdk/src/lib/parser/queryFilter/query-filter-parser.ts+++ b/packages/nocodb-sdk/src/lib/parser/queryFilter/query-filter-parser.ts@@ -9,11 +9,8 @@ import { CommonCstParser } from '../common-cst-parser';import { parseCst } from './query-filter-cst-parser';export class QueryFilterParser extends CommonCstParser {- parenDepth: number = 0;-constructor() {super(QUERY_FILTER_TOKENS);- this.parenDepth = 0;this.initializeRule();// very important to call this after all the rules have been defined.@@ -46,17 +43,11 @@ export class QueryFilterParser extends CommonCstParser {});$.RULE('paren_clause', () => {$.CONSUME(COMMON_TOKEN.PAREN_START);- $.ACTION(() => {- $.parenDepth++;- });$.OR([{ ALT: () => $.SUBRULE($['multi_clause'], { LABEL: 'clause' }) },{ ALT: () => $.SUBRULE($['call_expression'], { LABEL: 'clause' }) },]);$.CONSUME(COMMON_TOKEN.PAREN_END);- $.ACTION(() => {- $.parenDepth--;- });});$.RULE('call_expression', () => {$.SUBRULE($['VARIABLE']);@@ -94,22 +85,6 @@ export class QueryFilterParser extends CommonCstParser {const parseErrors = [...parser.errors];- if (parser.parenDepth !== 0) {- parseErrors.push({- name:- parser.parenDepth > 0- ? 'Unexpected opening parenthesis'- : 'Unexpected closing parenthesis',- message:- parser.parenDepth > 0- ? 'Unexpected opening parenthesis'- : 'Unexpected closing parenthesis',- token: null,- resyncedTokens: [],- context: null,- });- }-let parsedCst = undefined;try {