BIGINT UNSIGNED VALUE IS out of range My SQL

后端 未结 9 858
一向
一向 2020-12-18 19:11

I\'m getting the following error

#1690 - BIGINT UNSIGNED value is out of range in \'(legends.spawns.quantity -

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-18 19:47

    sql_mode worked in the MySQL client and Adminer, but not in CodeIgniter, where it counts. Casting didn't help either.

    A simple arithmetic operation did the trick:

    error

    id - id_ex*1000000000 = id_sm
    

    works

    id_sm + id_ex*1000000000 = id
    

提交回复
热议问题