Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
sqlite database
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2013 at 19:49 UTC
Updated:
29 Jul 2014 at 22:28 UTC
Jump to comment: Most recent file
Comments
Comment #1
dcrocks commentedThere were 2 errors. Function sqlFunctionRand needed the 'static' keyword. The 'compatibility' error just needed the 'array' type hint added to Function prepare.
Comment #2
dcrocks commentedneeds review.
Comment #3
amateescu commentedSorry for breaking this in the first place :/ Let's also fix the arguments for
prepare()to match the parent method.Comment #4
dcrocks commentedIt shouldn't be necessary but I'm OK with it. #1 matches the call in Function PDOprepare, which seemed more appropriate to me.
Comment #5
damien tournoud commentedActually, there is a bit more to it. We need the original PDO connection object in
StatementPrefetch(because we call PDO-specific methods on it, likePDO::errorInfo()), but we also need the DrupalConnectionobject there (because we callConnection::getLogger()).So the easier is just to refactor this and inject the PDO connection directly inside
StatementPrefetch... and as a consequence clean-up a few now unnecessary methods.Untested patch enclosed.
Comment #6
damien tournoud commentedAnd update the property declarations.
Comment #7
dcrocks commentedSince this has expanded a better title would be appropriate.
Comment #8
amateescu commentedThat refactoring looks good to me, thanks Damien :)
Comment #9
alexpottHmmm... this fixes the issue with serialisation. But I actually can not install Drupal 8 using sqlite... it just pauses during the installer and tables for modules that have been enabled do not appear to have been created.
Comment #10
amateescu commentedWe have a different issue for that #1998366: [meta] SQLite is broken. This is just a small patch that fixes what we broke in #1953800: Make the database connection serializable :)
Comment #11
alexpottThanks amateescu! So this does what it says on the tin.
Committed 1769841 and pushed to 8.x. Thanks!
Comment #12
panchoAwesome! This is getting us closer.