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

Fix missing head string in fingerprint of an unexpected CALL statement #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oblitorum
Copy link

@oblitorum oblitorum commented Dec 4, 2022

When generating a fingerprint for an CALL statement with some extra string in the head, it will return a fingerprint of a normal CALL statement, for example, EXPLAIN call test.testCall('test') => call test.testCall, the extra string in the head is missing.

I understand EXPLAIN doesn't support CALL statement, if it only intends to generate fingerprint for vaild SQL, then it should return something else instead of a normal CALL fingerprint. If it intends to generate fingerprint for any SQL that could be logged in slow query log, then I think the patch in this pull request should be merged (or maybe someone has a better idea).

PS: It seems that PMM-2.0 has the same problem

cc @gordan-bobic

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