1 前言
nodejs 运行时,出现以下情况er_bad_field_error NaN in where clause。
2 分析
原来是userid = NAN传进来了,生成userid时出错了。
3 解决方案
解决userid出现NAN情况即可,在执行前,对字段做检测
4 小结
仅作为记录使用。
1 前言
nodejs 运行时,出现以下情况er_bad_field_error NaN in where clause。
2 分析
原来是userid = NAN传进来了,生成userid时出错了。
3 解决方案
解决userid出现NAN情况即可,在执行前,对字段做检测
4 小结
仅作为记录使用。