Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
pushTransaction is doing $this->transactionLayers[$name] = $name;
and this function checks for if (isset($this->transactionLayers[$name]))
yes rollback uses array_search. Slow, confusing (what's the array structure, again...?), ugly. Edit: no test needed as no functionality has changed and transactions have tests already.
Comment | File | Size | Author |
---|---|---|---|
#4 | transactionLayers_stores_keys-1186582-4.patch | 647 bytes | Albert Volkman |
transactionLayers_stores_keys.patch | 539 bytes | chx | |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedThere is no small cleanup.
Comment #2
chx CreditAttribution: chx commentedYou mean there is no too small cleanup? I agree. Let's find a few whitespaces to delete :D
Comment #4
Albert Volkman CreditAttribution: Albert Volkman commentedLooks good in core/lib/Drupal/Core/Database/Connection.php, but not in core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php. This fixes that :)
Comment #6
Albert Volkman CreditAttribution: Albert Volkman commentedOdd, that test didn't fail locally. Do I have to have my local site set up with sqlite to properly test?
Comment #7
chx CreditAttribution: chx commented#4: transactionLayers_stores_keys-1186582-4.patch queued for re-testing.
Comment #9
jhodgdonThis test failure is probably:
#1783656: Intermittent test failure in testBulkImportUpdateExisting
Comment #10
Albert Volkman CreditAttribution: Albert Volkman commentedComment #11
Albert Volkman CreditAttribution: Albert Volkman commented#4: transactionLayers_stores_keys-1186582-4.patch queued for re-testing.
Comment #12
Albert Volkman CreditAttribution: Albert Volkman commentedNot completely up-to-snuff with OOP inheritance, so would this simply need to be removed from the sqlite implementation altogether?
Comment #14
jhedstromPatch still applies and makes sense.
Comment #15
alexpottCommitted 0dfd0ca and pushed to 8.0.x. Thanks!