8000 Fixed a bug in the Oracle driver of the gf framework where lowercase table names were not supported. by yuyinw · Pull Request #4312 · gogf/gf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

yuyinw
Copy link
@yuyinw yuyinw commented Jun 14, 2025

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0