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.
This brings bootstrap.inc up to DBTNG. All bootstrap tests pass, and the relevant system tests.
Comment | File | Size | Author |
---|---|---|---|
#11 | bootstrap.patch | 4.81 KB | Crell |
#8 | bootstrap.patch | 4.71 KB | Crell |
#6 | issue-313156.patch | 4.87 KB | lilou |
#4 | issue-313156.patch | 4.86 KB | lilou |
dbtng-bootstrap.patch | 4.58 KB | Crell | |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedThis is all sound.
Just one little thing:
This could become:
Comment #2
Crell CreditAttribution: Crell commentedDoes array_map() preserve associative arrays? *checks PHP manual* Hey, it looks like it does! Sweet, I like array_map() even more now. :-) Unless webchick has an objection I'm in favor of using the array_map idiom in these cases.
The alternative is to have a fetchAllKeyed() parameter that is a callback, but I think that's pushing just too much functionality into the DB system when the array_map above works just as well and is easier to grok, too.
Comment #3
webchickarray_map() looks *much* more legible. +1!
Comment #4
lilou CreditAttribution: lilou commentedarray_map()
is more effective.Comment #5
Crell CreditAttribution: Crell commentedSpiffy, thanks lilou! Per http://drupal.org/node/313152#comment-1031542 , can you also break the db_delete() in variable_set() across multiple lines? If not, I'll get to it later tonight. Thanks!
Comment #6
lilou CreditAttribution: lilou commentedComment #7
moshe weitzman CreditAttribution: moshe weitzman commentedcode looks good to me. nice work.
Comment #8
Crell CreditAttribution: Crell commentedgrumble grumble windows line breaks.
The patch in #6 also breaks the variable_init() query, so this version fixes it and the line breaks. All bootstrap tests pass.
Comment #9
Dries CreditAttribution: Dries commentedIs this chunck correct?
The
AND type = '%s'"
stuff seem to be missing?Comment #10
Crell CreditAttribution: Crell commentedI believe it is, yes. At least it passes all tests. :-) One of the nice things about DBTNG is that a lot of the things you used to have to loop on are now consolidated into primitive actions. You're right, though, that it looks like the type part went missing. That should be just another condition call. I'll roll a new patch after I finish fighting with simpletest over another patch. :-)
Comment #11
Crell CreditAttribution: Crell commentedAnd back again, now with the type restored.
Comment #12
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #13
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #14
Crell CreditAttribution: Crell commentedTagging.