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.
First patch fixing this: removing getActiveConnection and keeping only getConnection and making openConnection return the connection instead of magically storing it. This makes following db_select/db_insert etc etc much easier because now all pieces in getConnection is visible and there is only one connection function to read. Impact on HEAD? I suspect none at all.
Comment | File | Size | Author |
---|---|---|---|
#4 | getConnection.patch | 23.59 KB | chx |
#3 | getConnection.patch | 21.48 KB | chx |
#1 | getConnection.patch | 21.48 KB | chx |
getConnection.patch | 20.26 KB | chx | |
Comments
Comment #1
chx CreditAttribution: chx commentedNow, the more-often used $target parameter is the first one. This allows really nice parameter passing.
Comment #3
chx CreditAttribution: chx commentedTests now pass.
Comment #4
chx CreditAttribution: chx commentedTests would pass if I would upload the right patch.
Comment #5
chx CreditAttribution: chx commentedAnd the next issue is #363802: Document class methods with class, factory and defining interfaces
Comment #6
Crell CreditAttribution: Crell commentedchx and I discussed this at length in IRC before he submitted it, and I'm OK with it.
chx, when this lands can you also update the docs at: http://drupal.org/node/310070
Comment #7
Crell CreditAttribution: Crell commentedEr, yeah, changing status would be good too.
Comment #8
Dries CreditAttribution: Dries commentedThis looks like a good simplification indeed -- I remember scratching my head about this when I reviewed early version of the new database abstraction layer. Doing some review and testing now.
Comment #9
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks chx!
Comment #10
Dries CreditAttribution: Dries commentedUhm, the KLM lounge at Amsterdam/Schiphol airport does not allow me to do CVS commits ...
Comment #11
webchickKLM lounge FAIL. ;)
Committed to HEAD. Docs please. :)
Comment #12
chx CreditAttribution: chx commented