gf icon indicating copy to clipboard operation
gf copied to clipboard

Fixed a bug in the Oracle driver of the gf framework where lowercase table names were not supported.

Open yuyinw opened this issue 6 months ago • 0 comments

背景:在Oracle中,双引号用于标识区分大小写的标识符,包括表名。当表名用双引号括起来时,Oracle会保留其大小写,否则,Oracle会将标识符转换为大写

问题:oracle_do_filter.go文件DoFilter函数中newSql, err = gregex.ReplaceString(""", "", newSql)会将sql语句中“”全部删除,导致无法支持表名为小写的表。

解决:删除newSql, err = gregex.ReplaceString(""", "", newSql)

yuyinw avatar Jun 14 '25 08:06 yuyinw