Welcome Guest, Not a member yet? Register   Sign In
Affected Rows won't work when using batch insert/update
#2

[eluser]WanWizard[/eluser]
That's odd.

affected_rows() just calls the selected drivers' PHP function. As insert_batch() inserts the data with 100 rows at the same time, the figure could be incorrect (as you'll only see the last insert operation), but you see something else than zero.

Are you using transactions? If so, after a commit, the counter is reset to zero.


Messages In This Thread
Affected Rows won't work when using batch insert/update - by El Forum - 04-11-2011, 08:52 AM
Affected Rows won't work when using batch insert/update - by El Forum - 04-11-2011, 10:14 AM
Affected Rows won't work when using batch insert/update - by El Forum - 04-11-2011, 12:56 PM
Affected Rows won't work when using batch insert/update - by El Forum - 04-11-2011, 02:04 PM
Affected Rows won't work when using batch insert/update - by El Forum - 04-11-2011, 03:22 PM
Affected Rows won't work when using batch insert/update - by El Forum - 10-19-2012, 08:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB