Closed Jiralite closed 3 years ago
This is clearly a bug. null must here be considered as a value. I've created https://jira.mariadb.org/browse/CONJS-173 for that
Thank you for confirming & triaging the issue!
corrected with https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/016ef46a672346d50a4018fea260ba7144f0ade9. Will be available in 2.5.5 and 3.0.1-RC
Problem
Hiya, I migrated from another package to this one (this looks great by the way) and found some peculiar behaviour. My query is like this:
This would set the column to
null
. However, it doesn't work and I receive this:The documentation states that
values
is an array or an object but in the case of one placeholder, it can be given as is. In this case, I gave it as is, and it failed.It seems to only happen with
null
. I assume this is a bug but a low priority one? This is fixed if I simply provide an array withnull
in it. Alas, here is my issue, please enlighten me if this is a bug or not!Versions