【发布时间】:2020-01-28 23:55:06
【问题描述】:
我查看了一些其他类似问题的答案,但似乎没有一个对我有帮助。
[2020-01-28 23:26:29] CDbCommand failed to execute the SQL statement: SQLSTATE[22003]: Numeric value out of range: 1690 BIGINT value is out of range in 'count(`Um3mpV1OJwy6m`.`jobsubmits`.`id`) * 500000 * 4398046511104'
[2020-01-29 00:26:47] CronjobController::actionRun 0
[2020-01-29 00:27:07] CDbException#1
(
[errorInfo] => array
(
0 => '22003'
1 => 1690
2 => 'BIGINT value is out of range in \'count(`Um3mpV1OJwy6m`.`jobsubmits`.`id`) * 500000 * 4398046511104\''
)
[*:message] => 'CDbCommand failed to execute the SQL statement: SQLSTATE[22003]: Numeric value out of range: 1690 BIGINT value is out of range in \'count(`Um3mpV1OJwy6m`.`jobsubmits`.`id`) * 500000 * 4398046511104\''
[Exception:string] => ''
[*:code] => 22003
[*:file] => '/home/crypto-data/yiimp/site/web/framework/db/CDbCommand.php'
[*:line] => 543
[Exception:trace] => array
【问题讨论】:
-
有什么不明白的?您的号码对于
BIGINT来说太大了。阅读:stackoverflow.com/questions/1632312/… -
bigint 从 -9223372036854775808 到 9223372036854775807,所以它是有限的
-
我不明白的是如何解决它,:)