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

"null" as a value can't be used for certain statements #556

Closed
Paril opened this issue Apr 27, 2017 · 3 comments
Closed

"null" as a value can't be used for certain statements #556

Paril opened this issue Apr 27, 2017 · 3 comments
Labels

Comments

@Paril
Copy link

Paril commented Apr 27, 2017

Seems that, somewhere down the line, "toString" is called on all of the arguments of prepared statements, which can't be run on the value of null since it's.. well, null.

TypeError: Cannot read property 'toString' of undefined
    at Execute.toPacket (/home/planetmi/chat/node/js/node_modules/mysql2/lib/packets/execute.js:47:39)
    at Execute.start (/home/planetmi/chat/node/js/node_modules/mysql2/lib/commands/execute.js:50:40)
    at Execute.Command.execute (/home/planetmi/chat/node/js/node_modules/mysql2/lib/commands/command.js:39:20)
@sidorares
Copy link
Owner

this was started in #480 but unfortunately did not have time yet to review & merge

also related are #493, #353

@sidorares sidorares added the bug label Apr 27, 2017
@testn
Copy link
Contributor

testn commented Oct 18, 2021

@sidorares I guess that this has been addressed?

@sidorares
Copy link
Owner

I believe this has been addressed, yes

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

No branches or pull requests

3 participants