用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1133|回复: 0
收起左侧

[HELP] 更新 decimal 的字段 提示 could not be converted to string

[复制链接]
发表于 2015-3-30 18:02:49 | 显示全部楼层 |阅读模式
money 是 decimal 类型
$this->db->set('gz_sf_money',$money,FALSE);
//$data = array('gz_sf_money' => "$money"); monery会被转义,此方法不可用。
$this->db->where('uniqid',$uniqid);
return $this->db->update($this->table);

这两种方式都不行,提示 could not be converted to string 怎么写才对!

本版积分规则