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.
Problem/Motivation
The docblocks for Connection::select
and Select::__construct
only describe $table as a string, but in reality it can also be a subquery in form of a SelectInterface object (for example, for rowcount queries).
Proposed resolution
Fix
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#14 | 3216556-14.patch | 1.65 KB | guilhermevp |
#10 | 3216556-10.patch | 1.76 KB | sudiptadas19 |
#6 | 3216556-6.patch | 1.78 KB | sudiptadas19 |
Comments
Comment #2
mondrakeComment #3
andypostLooks much better
Comment #4
daffie CreditAttribution: daffie commentedTwo nitpicks:
Not outlined correctly.
Double space.
The documentation text is +1 for me.
Comment #5
mondrakeComment #6
sudiptadas19 CreditAttribution: sudiptadas19 at QED42 for Drupal India Association commented@daffie
Added the changes as suggested. Please review it.
Comment #7
daffie CreditAttribution: daffie commented@sudipta: You have fixed #4.2 correctly, only #4.1 still needs to be done.
Comment #8
sudiptadas19 CreditAttribution: sudiptadas19 at QED42 for Drupal India Association commented@daffie:
You want some text change or how it is, not getting it clearly.
Comment #9
daffie CreditAttribution: daffie commentedTo be more clear. This text does not need to start on a new line. Look at the other change. "If a SelectInterface object ..." also does not start on a new line.
Comment #10
sudiptadas19 CreditAttribution: sudiptadas19 at QED42 for Drupal India Association commentedGiven feedback addresses. Please review it.
As it is a small change, not added an interdiff.
Comment #11
andypoststill not aligned properly
Comment #12
mondrakenot a native speaker, but this is incorrect grammar. How about "If a SelectInterface object, it will be treated as a subquery."
Comment #13
longwaveHow about: The base table name or subquery for this query, used in the FROM clause. If a string, the table specified will also be used as the "base" table for query_alter hook implementations.
How about just: The table name or subquery that is being queried.
Comment #14
guilhermevp CreditAttribution: guilhermevp at CI&T commentedMade changes suggested in #13.
Please review.
Comment #15
mondrakeBrilliant!
Comment #16
xjmComment #19
xjmGood find. Committed to9.3.x and cherry-picked to 9.2.x. Thanks everyone!