I’m using transactions with PHP’s PDO and MySQL and I’m wondering how to select, from within the transaction, some data that has not yet been committed.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From what I can glean from the documentation, the default transaction isolation level is REPEATABLE_READ, which should allow you to do what you want.
If your instance isn’t defaulting to REPEATABLE_READ, see http://dev.mysql.com/doc/refman/5.0/en/set-transaction.html for how to change it.