Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

运行时出现ERRO[3660] sql: Scan error on column index 5: converting driver.Value type []uint8 ("5368709120") to a int: value out of range #64

Open
kuroiwind opened this issue Jul 18, 2016 · 4 comments

Comments

@kuroiwind
Copy link

kuroiwind commented Jul 18, 2016

MU版,数据库是MYSQL远程访问的,运行的时候就显示
ERRO[3660] sql: Scan error on column index 5: converting driver.Value type []uint8 ("5368709120") to a int: value out of range
不知道怎么解决。

@goxox
Copy link

goxox commented Jul 18, 2016

这个 "5368709120 " uint8 取值范围比这个小,改小点就可以了

@kuroiwind
Copy link
Author

kuroiwind commented Jul 18, 2016

@ayooay 能不能让他能取这个值呢?因为我不想修改数据库会影响其他节点。这个数据是允许使用流量·估计不能乱改

@goxox
Copy link

goxox commented Jul 18, 2016

@kuroiwind type []uint8 这个应该是byte数组,要修改需要修改源码。你可以fork,然后找到对应代码修改,编译的时候got get自己的。建议你还是修改数据库值。我都没有遇到这个问题

@kuroiwind
Copy link
Author

不知道会不会和我之前这数据库是PY版的有关系。现在想转用GO版的·但是数据内容不想变化

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants