Skip to content

Wrong parsing of CREATE VIEW if a variable is in the query #76

@StpMax

Description

@StpMax

@ symbol is missed from the query after parsing:

from mindsdb_sql_parser import parse_sql

sql = """
create view todel as (select * from local_mysql.test_house where sqft = @myvar);
"""
ast = parse_sql(sql)
print(ast.query_str)
# > select * from local_mysql.test_house where sqft = myvar

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    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