Skip to content

Fix cached prepared statements retain old values if passed nil in mysqloolib#142

Merged
FredyH merged 1 commit intoFredyH:masterfrom
chelog:patch-1
Mar 15, 2025
Merged

Fix cached prepared statements retain old values if passed nil in mysqloolib#142
FredyH merged 1 commit intoFredyH:masterfrom
chelog:patch-1

Conversation

@chelog
Copy link

@chelog chelog commented Mar 15, 2025

If you run the same query with db:PrepareQuery(sqlString, params) with non-nil values and then again with nil ones, it will run with previous value instead of db native NULLs. This PR fixes that

@FredyH FredyH merged commit 6d94796 into FredyH:master Mar 15, 2025
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