You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] CreateTableStmt‘s toSql put comment in the wrong place #27474
I had searched in the issues and found no similar issues.
Version
1.2.7.1
2.0.x
What's Wrong?
CreateTableStmt parsedSql generated by function toSql() put comment in wrong place
CreateTableStmt engineName will be upperCase,when user does't have Create_priv and engine in CreateTable DDL String is upperCase
What You Expected?
CreateTableStmt toSql get correct dll
engineName will ignore case
How to Reproduce?
In AuditPlugin, if user has no create_priv, the AuditEvent.stmt will get wrong parsed sql becauseof comment in wrong place;
In AuditPlugin, if user has no create_priv and user's create table ddl's ENGINE is OLAP, engineName in the instance of CreateTableStmt will be upperCase;
Activity
[fix](stmt):fix CreateTableStmt toSql placed comment in wrong place (#…
Master auto reply (#14)
[fix](stmt):fix CreateTableStmt toSql placed comment in wrong place (a…
[fix](stmt):fix CreateTableStmt toSql placed comment in wrong place (a…
[fix](stmt):fix CreateTableStmt toSql placed comment in wrong place (a…