Skip to content
Advertisement

Out of range value for column ‘ownerid’ at row 1 node.js sql query

I am using a mysql pool here and I did a query inside of a query. This is supposed to save the guildowner ID in the database when this command is run. Unfortunately it does not let me run this code for some reason. I listed the error down below.

Error:

Advertisement

Answer

The largest integer value allowed in mySQL int data type is 4294967295.

If you change the data type to BIGINT, your value will work.

See this page for details

https://www.mysqltutorial.org/mysql-int/

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement