Skip to content

[Bug]: "ALTER TABLE" can collect entities but entities don't have belongStmt #311

@Kijin-Seija

Description

@Kijin-Seija

Version

4.0.1

Which SQL?

Postgre

SQL content

ALTER TABLE my_table DROP a_column|;

JavaScript/TypeScript code

No response

What happened?

my_table can be collected but it has no belongStmt, then people cannot use isContainCaret or other properities


my_table被收集了但是其属性里没有belongStmt, 基于isContainCaret或其他StmtContext属性的功能可能会无法正常工作。

image

I find that maybe there's no definition of altertablestmt. I will create a PR and try to cover it. If there is already a roadmap, ignore the PR.


看了下好像是没有定义'altertablestmt'这个StmtContext,我这边尝试添加了一下,已测试通过。如果这在你们的roadmap上,请忽略此PR

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions