A possible reason why database transactions may not work in CodeIgniter with MySQL

For CodeIgniter transactions to work in MySQL, make sure that the database engine is InnoDB or BDB, both of which are transactional as opposed to MyISAM which is more common but a non-transactional engine.

This is clearly mentioned in the CodeIgniter documentation but easy to miss if you are not paying attention.

Advertisements

One thought on “A possible reason why database transactions may not work in CodeIgniter with MySQL

  1. […] is more common but a non-transactional engine. This is clearly mentioned in the CodeIgniter… [full post] rahulj51 Miles to code uncategorized 0 0 0 0 0 […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: