codeigniter-base-model icon indicating copy to clipboard operation
codeigniter-base-model copied to clipboard

Update,update_by,... return always true even if there is not updated rows

Open arquesing opened this issue 12 years ago • 3 comments
trafficstars

When I use update_by , for example, it always returns 'true' as a result. Is it a normal behaviour?

Thanks ;)

arquesing avatar Oct 21 '13 21:10 arquesing

MY_Model uses the QueryBuilder update function internally. You would have to look at the CI QueryBuilder code to see what is going on.

thnaeff avatar Jul 16 '15 15:07 thnaeff

When I use update_by , for example, it always returns 'true' as a result. Is it a normal behaviour?

Thanks ;)

I have also same problem. You have sloved this?

khyatibhojawala avatar Mar 14 '19 11:03 khyatibhojawala

I have also same problem

chandni030 avatar Jun 24 '20 01:06 chandni030