Open Srlion opened 2 years ago
I think this is intended because Lua doesn't have NULL.
But this could be fixed, i see a possible problem with backwards compatibility.
We could have sql.NULL light userdata or table object to indicate NULL, or just nil, but that might be ambiguous
Or just _G.NULL lol
mysqloo returns them as nil and tbh that's what sqlite should do too
I wonder how people avoided this problem so we can find non-breaking solution.
I remember I used val and SQLStr(val) or "NULL"
Details
SQLite NULL values are returned as strings in lua.
Steps to reproduce