Skip to content

Column name with space #163

Description

@Alletkla

Your inserted SQL-Statement:

SELECT "col mit Leerzeichen" FROM table1

The generated RegEx:

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

Steps to reproduce:

all settings disabled

Expected Statement to match the RegEx:

SELECT "col mit Leerzeichen" FROM table1

Additional context:
Problem is that spaced column names get whitespace stripped in the RegEx

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