Skip to content

[Bug]: postgresql will not throw error when sql is incomplete #477

@Cythia828

Description

@Cythia828

Version

v4.5.0

Which SQL?

Postgre

SQL content

CREATE TABLE MyTable (user_id BIGINT, name STRING) WITH ('connector' = 'oracle-x');

select from (select user_id from MyTable) as t1;

JavaScript/TypeScript code

What happened?

CREATE TABLE MyTable (user_id BIGINT, name STRING) WITH ('connector' = 'oracle-x');

select from (select user_id from MyTable) as t1;
这种SQL语句不完整的情况下,正常应该飘红的,但是由于PG语法文件的特殊性,目前不报错

Image

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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