This project is archived and is in readonly mode.

#1732 ✓stale
Eloy Duran

Remove transaction queries from assert_queries count.

Reported by Eloy Duran | January 11th, 2009 @ 11:46 AM | in 3.x

In testing some functionality with transactions, I noticed that assert_queries works inconsistent with sqlite vs mysql.

A sqlite transaction would produce 1 query and mysql 3, because mysql uses the BEGIN and COMMIT keywords. This patch removes those keywords from the queries before comparing.

Note: Other db's might need similar adjustment, but these are my database flavours.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

Referenced by