Related to #355225: Inconsistant Insert Queries Between Database Drivers: we mandate multi-values insert queries to be atomic on all engines that support transactions, and this is the case of SQLite. For this to work, we need to explicitly add ON CONFLICT ROLLBACK to our insert queries (the default is ON CONFLICT ABORT that just abort the current query).

Comments

damien tournoud’s picture

Status: Active » Needs review
StatusFileSize
new2.23 KB

Here we are.

damien tournoud’s picture

Status: Needs review » Needs work
Crell’s picture

Why was this set back to needs work? Are we going to resolve this in D7, or push it to D8?

catch’s picture

Priority: Critical » Normal

Downgrading, this is a straight bug.

ddorian’s picture

Status: Needs work » Needs review

#1: 357470-sqlite-insert-rollback.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 357470-sqlite-insert-rollback.patch, failed testing.

andypost’s picture

damien tournoud’s picture

Status: Needs work » Closed (won't fix)

Actually, no. We fixed the base implementation to properly rollback in case of error.