You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For INSERT query the last insertId is not cast to string when the auto-increment column is bigint. The bigNumberStrings is ignored and the result is returned as number. typeof results.insertId == number
The text was updated successfully, but these errors were encountered:
Hi @AgnisLV in the MySQL protocol, the insertId is always returned as a BIGINT no matter the query. The bigNumberStrings is specifically around the typecasting of columns, not of the other aspects of MySQL protocol packets (like the results packet).
Sorry, I was too hasty with my last comment. It seems that if supportBigNumbers is enabled then insertId will be returned as a String when numbers are large enough. All clear now.
For INSERT query the last insertId is not cast to string when the auto-increment column is bigint. The bigNumberStrings is ignored and the result is returned as number.
typeof results.insertId == number
The text was updated successfully, but these errors were encountered: