checkSql:=fmt.Sprintf("select * from %s.%s where dbname = \"%s\" and tablename = \"%s\" and colname = \"%s\"",dbname,metatable,dbname,tbname,f)
checkSql:=fmt.Sprintf("select * from %s.%s where dbname = \"%s\" and tablename = \"%s\" and colname = \"%s\"",dbname,metatable,srcdbname,tbname,f)
checkRow,err:=db.Query(checkSql)
iferr!=nil{
checkErr(err,checkSql)
...
...
@@ -382,7 +382,7 @@ func (d *demo) Init() {
thresholdint
)
checkSql:=fmt.Sprintf("select * from %s.%s where dbname = \"%s\" and tablename = \"%s\" and colname = \"%s\"",d.dbname,d.metaTable,d.dbname,tbname,f)
checkSql:=fmt.Sprintf("select * from %s.%s where dbname = \"%s\" and tablename = \"%s\" and colname = \"%s\"",d.dbname,d.metaTable,d.srcdbname,tbname,f)