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

Tracy panel crashes with queries containing regular expressions #61

Open
servantales25 opened this issue Aug 6, 2021 · 1 comment
Open

Comments

@servantales25
Copy link

servantales25 commented Aug 6, 2021

If there's a question mark usages in query (because of regular expression) with similar usage to this REGEXP_REPLACE(u.name, '^([^ ]+)(?: ([^\\(].+[^\\)]))?(?: \\((.+)\\))?$', '$2$1$3'), then vsprintf() function call in Logger\ProfileLogger throws this warning

vsprintf(): Too few arguments

This is probably caused by sanitization of question marks (used in sql's regexp) replacing them by %s.

@servantales25 servantales25 changed the title Tracy panel not working with REGEXP_REPLACE Tracy panel crashes with queries containing regular expressions Aug 11, 2021
@matronator
Copy link

Having the same issue.

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

No branches or pull requests

2 participants