I guess that the node is using toString() to convert it. What other tool are you using that does something different? Note that if you use a command line client for example then you are passing it a string, not a number.
Are you seeing that with .toString(). I don't. This in a function node displays the numbers as they are entered.
x = 11111;
x = 11111111;
x = 11111111111;
x = 111111111111;
x = 11111111111111;
x = 1111111111111111;
Argh, only when used with the node, i.e. to build the msg.params...
To be clear, debug terminal never shows an issue, only the final value at the table is wrong.
I assume the issue occurs between the 'prepared' node receiving the msg.parms, and converting them, before it applies the query. Hence my assumption that it's an issue with the SQLite node somewhere (a pretty uneducated assumption, but it's all I have!).