Skip to content

Avoid hash mismatch by stringify bindings#2028

Open
erikn69 wants to merge 1 commit intofruitcake:masterfrom
erikn69:patch-743801
Open

Avoid hash mismatch by stringify bindings#2028
erikn69 wants to merge 1 commit intofruitcake:masterfrom
erikn69:patch-743801

Conversation

@erikn69
Copy link
Copy Markdown
Contributor

@erikn69 erikn69 commented Apr 10, 2026

When using \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull
Bindings like

array:3 [
 0 => ""
 1 => ""
 2 => "" 
]

transform into

array:3 [
 0 => null
 1 => null
 2 => null 
]

Therefore, the hashes do not match, and you cannot use explain or run the query.

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.

1 participant