@@ -339,9 +339,7 @@ type Position struct {
339339
340340// handleQueryEvent is handle some common query events (e.g., DDL,CREATE or DROP USER,GRANT),
341341// others use UnknownQueryEvent unified callbacks to expose to users
342- func (c * Canal ) handleQueryEvent (ev * replication.BinlogEvent , e * replication.QueryEvent ,
343- stmt ast.StmtNode , pos * Position ) error {
344-
342+ func (c * Canal ) handleQueryEvent (ev * replication.BinlogEvent , e * replication.QueryEvent , stmt ast.StmtNode , pos * Position ) error {
345343switch t := stmt .(type ) {
346344case * ast.RenameTableStmt , * ast.AlterTableStmt , * ast.DropTableStmt , * ast.CreateTableStmt , * ast.TruncateTableStmt :
347345return c .handleDDLEvent (ev , e , t , pos )
@@ -350,8 +348,7 @@ func (c *Canal) handleQueryEvent(ev *replication.BinlogEvent, e *replication.Que
350348}
351349}
352350
353- func (c * Canal ) handleDDLEvent (ev * replication.BinlogEvent , e * replication.QueryEvent ,
354- stmt ast.StmtNode , pos * Position ) error {
351+ func (c * Canal ) handleDDLEvent (ev * replication.BinlogEvent , e * replication.QueryEvent , stmt ast.StmtNode , pos * Position ) error {
355352nodes := parseStmt (stmt )
356353for _ , node := range nodes {
357354if node .db == "" {
0 commit comments