240
世界上有10种人,一种懂二进制,另一种不懂二进制。

[nodejs]er_bad_field_error NaN in where clause

1 前言

nodejs 运行时,出现以下情况er_bad_field_error NaN in where clause。

2 分析

原来是userid = NAN传进来了,生成userid时出错了。

3 解决方案

解决userid出现NAN情况即可,在执行前,对字段做检测

4 小结

仅作为记录使用。

 

posted @ 2018-07-11 14:40  unionline  阅读(346)  评论(0)    收藏  举报