Skip to content

Wrong quantifier at table name quotation marks #162

Description

@Alletkla

Your inserted SQL-Statement:

SELECT col1 FROM table1

The generated RegEx:

^\s*SELECT\s+[`´'"]?col1[`´'"]?\s*(\s*(?:ALIAS|AS)\s+.*?)?\s+FROM\s+[`´'"]*table1[`´'"]*(\s*(?:ALIAS|AS)?\s+.*)?\s*;?\s*$

Steps to reproduce:

all Settings deactivated

Expected Statement to match the RegEx:

SELECT col1 FROM "table1"

Additional context:
BUT SELECT col1 FROM ""table1"" should NOT match. There is the wrong Quantifier at the table name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions