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

Queries with union and uses wrong binding parameters (in some cases) #1602

Open
machlon-caveo-nl opened this issue Apr 2, 2024 · 4 comments

Comments

@machlon-caveo-nl
Copy link

I was investigating a query and found this:

Main Query (with 2 binding params) keys [0, 1]
Union Query (with 3 binding params) keys [2, 3, 4]

Debug bar uses [0, 1] for Main and [0, 1, 2] for Union query

In this case the sql is rendered incorrect

@erikn69
Copy link
Contributor

erikn69 commented Apr 2, 2024

image
I couldn't replicate it, what driver do you use, Laravel version, laravel-debugbar version, database, database version?

@machlon-caveo-nl
Copy link
Author

machlon-caveo-nl commented Apr 3, 2024 via email

@erikn69
Copy link
Contributor

erikn69 commented Apr 3, 2024

You have very really outdated versions
try adding "repositories" with my fork, i added laravel 8 with the current changes

"require-dev": {
    "barryvdh/laravel-debugbar": "^3.6.7",
    ///
},
"repositories":[
    {
        "type": "vcs",
        "url": "[email protected]:erikn69/laravel-debugbar.git"
    }
],

Then composer update

@machlon-caveo-nl
Copy link
Author

machlon-caveo-nl commented Apr 4, 2024 via email

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

No branches or pull requests

2 participants