Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

DDL through CreateDatabase or CreateTable gets wrong query #364

@wjhuang2016

Description

@wjhuang2016

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.

We need to set the query for the DDL, like this

se.SetValue(sessionctx.QueryString, s.OriginText())

But we didn't set it, so query in DDL history is wrong.

  1. What version of BR and TiDB/TiKV/PD are you using?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority/P0Top priority issue. Must have an associated milestonerelease-blockerstatus/discussionThis is waiting for / still in discussiontype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions