iverycd / OracleSync2MySQL

Oracle to MySQL, PolarDB, Percona Server MySQL, MariaDB, OceanBase, TiDB, GaussDB for MySQL
MIT License
43 stars 16 forks source link

tablemeta.go中ViewCreate方法ReplaceAll处理视图源码似乎有些问题 #16

Open WenTao-Love opened 3 months ago

WenTao-Love commented 3 months ago

dbRet = strings.ToUpper(dbRet) 这里已经将原来的sql都转为了大写,在下面处理应该按照大写来查找替换。 dbRet = strings.ReplaceAll(dbRet, "unistr('\0030')", "0") dbRet = strings.ReplaceAll(dbRet, "unistr('\0031')", "1") dbRet = strings.ReplaceAll(dbRet, "unistr('\0033')", "3") ?

iverycd commented 3 months ago

最新版本v0.1.3已修复