a bug about set()
here I use
$db->table('user')->set('item_num','item_num+1',false)->where('id',1)->update();
the value of item_num in mysql become "0"
the above Executes:
UPDATE lb_userSET item_num = 'item_num+1' WHEREid = '1'
but when I use the follow code
UPDATE lb_userSET item_num = item_num+1 WHEREid = '1'
it works well.
I guess the third param($escape) might be a bug. please test, thanks.
If this is a bug, raise the issue here, but you don't also have to cross-post it on the forum. If you don't know if it is a bug, then bring it up on the forum for feedback and/or confirmation, before raising it as an issue.
I will definitely check on that but you can use the increment and decrement methods and not worry about it...