Skip to content
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

[java] 修复ClientPreparedStatement方法Hook失败的bug #277

Merged
merged 4 commits into from May 11, 2021

Conversation

xuing
Copy link
Contributor

@xuing xuing commented May 11, 2021

hookSqlPreparedStatementMethod方法中,type为SqlType.MYSQL,会根据className的值,以确定originalSqlCode的值。
image

但因isClassMatched方法中忘记为className赋值,导致type为SqlType.MYSQL时,className一直为NulloriginalSqlCode只能取到originalSql

最终导致ClientPreparedStatementHook的缺失。

@xuing xuing changed the title [java] 修复SQLPreparedStatementHook中className未赋值bug [java] 修复ClientPreparedStatement方法Hook失败的bug May 11, 2021
@CaledoniaProject CaledoniaProject changed the base branch from master to 1.3.7 May 11, 2021 02:10
@CaledoniaProject CaledoniaProject merged commit 586f53c into baidu:1.3.7 May 11, 2021
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.

None yet

3 participants