I will investigate it. The double quotes around the number is normal, the problem is that JS and PHP do not support 64bit integers and that is why these numbers are stored as strings.
In my first tests it just worked fine, tested with MySQL 8 and PHP 7.3. This was with the database in docker and unicode charset, don’t think that a latin1 charset should make the difference but will test that also, just have some other work to finish first.
Thanks for the update.
From what I know, MariaDB 10.3+ is equivalent to MySQL 8.0+. Can you please also check with MySQL 8 or even better if you can find MariaDB 10.3+?
Tried it again, still not working for me.
I checked this time on client’s production DB server which has MySQL 5.7.32 (a bit higher than 5.7.14 you tested on).
Query is from multiple query builder. Custom is custom query.
Can you please share the schema of the table you are testing this on? In case you did not notice the schema in original question, maybe you can try that.
Also, is there any more information on my end that I can provide to debug this?
NodeJS is notorious for being bad at a few things with numbers. Big ones and division. That is why libraries such as https://github.com/MikeMcl/bignumber.js/ have been created to try and fix this.
In my test case I had a single id field of the type BIGINT, just like in the bug report. Only difference is that I tested on MySQL 8 and with the unicode charset.
That’s right. And custom query is working for me too.
The bug report is to improve Wappler’s query builder. It should be able to run queries which it can build, reliably.
Well there are some very little cases that a query from Wappler would not work and I think that the custom query is the answer to this. I mean in every 1000 queries, 1 might not work as expected so just recreate it using a custom one and you are done!