Skip to content

unable to tokenize for operator "NOT LIKE" #1

Description

@ashishdhyani

var SqlWhereParser = require("sql-where-parser")
const config = SqlWhereParser.defaultConfig; // start off with the default config.
config.tokenizer.shouldTokenize.push('NOT LIKE');

var sql = "(HIERARCHY not like '%[ASD|41]%' And HIERARCHY not like '%[SEF|29]%')";

const parser = new SqlWhereParser(config);
const parsed = parser.parse(sql);

return parsed;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions