Skip to content

misuse of metabuild.NewContext() when create TableInfo #12608

@lance6716

Description

@lance6716

https://github.com/search?q=repo%3Apingcap%2Ftiflow%20BuildTableInfoFromAST(metabuild.NewContext()%2C%20stmt)&type=code

The default metabuild.NewContext() has strict SQL mode flags, it will reject some SQL like default zero datetime.

Should use NewNonStrictContext() instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/dmIssues or PRs related to DM.area/ticdcIssues or PRs related to TiCDC.type/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions