Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
sqlite database
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2010 at 17:52 UTC
Updated:
11 Apr 2010 at 07:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
mfer commentedSubscribe.
This issue blocks sqlite testing. Once testing in sqlite comes back up there will be MANY follow-up issues. Drupal 7 fails A LOT of tests in sqlite at the moment.
Comment #2
andypost@mfer the first thing is really needed to detect actual sqlite version, I found no better approach then parse phpinfo()
EDIT:
SELECT sqlite_version();worksTesting server could use ubuntu for #543582: Meta issue: fix the remaining SQLite bugs
Also there's http://qa.drupal.org/incombatibility
Comment #3
andypostI got it working on debian lenny (pdo_sqlite 3.3.7)
Comment #4
andypostA bit commented and $this->willRollback should mark whole stack as needed total rollback
Comment #5
dries commentedI reviewed the code and this looks good. I haven't tested the code though, but I'm going to mark this RTBC. I'll commit this unless someone else raises some issues with it.
Comment #6
damien tournoud commentedPlease give me a few hours to properly review and test this.
Comment #7
andypostTransaction tests are broken, suppose we need a conditional tests for old and new libs
EDIT: also "invalid data" test broken but this another issue
Comment #8
damien tournoud commentedThe transaction test is probably failing because we fail to rollback a transaction at the correct point. SQLite supports transactional DDL statements, so the following will result in the table not being removed:
Comment #9
andypost@Damien transactional DDL means that DDL statements works in transaction (does not roll back transaction)?
Comment #10
damien tournoud commentedHm. Actually the issue we have here is that the willRollback flag is never cleared. This works pretty well for me.
Comment #11
andypostThis passes a transaction test!
Comment #12
dries commentedCommitted to CVS HEAD.
Comment #13
mfer commentedLooking at http://drupalcode.org/viewvc/drupal/drupal/includes/database/sqlite/data... I don't see this committed, yet.
Comment #14
dries commentedOops. Committed now! Thanks.