Skip to content

Fix random instances of SQL queries having params repeated#505

Merged
barryvdh merged 2 commits intophp-debugbar:masterfrom
tadhgboyle:patch-1
Oct 31, 2022
Merged

Fix random instances of SQL queries having params repeated#505
barryvdh merged 2 commits intophp-debugbar:masterfrom
tadhgboyle:patch-1

Conversation

@tadhgboyle
Copy link
Copy Markdown
Contributor

@tadhgboyle tadhgboyle commented May 29, 2022

In my application, I noticed that on seemingly random occurrences, parameters would be repeated when replacing them in the SQL query string: (notice that they display fine in the table under the query, but the first one is inserted in all 3 locations)
Screen Shot 2022-05-29 at 17 26 38

This PR fixes this issue.

Looking at open issues here, this seems to be the same issue as #457, but this problem arises for me without using BETWEEN statements... 🤔

I have added a test, and all tests are passing.

@barryvdh barryvdh merged commit fd43dfb into php-debugbar:master Oct 31, 2022
@barryvdh
Copy link
Copy Markdown
Collaborator

Thanks!

@tadhgboyle tadhgboyle deleted the patch-1 branch January 31, 2023 17:15
@tadhgboyle
Copy link
Copy Markdown
Contributor Author

Any idea when a new release will be pushed out with this change in it @barryvdh? 🙏🏼

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