View update_batch without executing - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: View update_batch without executing (/showthread.php?tid=68962) |
View update_batch without executing - bhogsett - 09-19-2017 I am using a db->update_batch and as I am debugging I would like to view what will be in the update without executing the update. Can this be done? Thanks. RE: View update_batch without executing - skunkbad - 09-19-2017 Consider using a manual transaction. For example, consider the following table: Code: CREATE TABLE `myTable` ( Now the following code: PHP Code: $this->db->insert('myTable', array( This will output: Code: UPDATE No updates were actually made to the database. |