Closed (fixed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
database system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2020 at 12:46 UTC
Updated:
8 May 2021 at 06:14 UTC
Jump to comment: Most recent
Comments
Comment #2
daffie commentedPostponed on #3177660: Remove public properties from StatementInterface implementations.
Comment #3
daffie commentedComment #4
donquixote commentedInteresting.
#3195524: $query->execute() should throw exception on failure, not return NULL
Here I suggest the opposite: Use StatementEmpty as a return value for select queries where we can determine the result to be empty before running the actual query.
(thanks @mondrake for linking)
Comment #7
mondrakeIMHO it's not necessary to wait on #3177660: Remove public properties from StatementInterface implementations.
Comment #8
mondrakeRerolled
Comment #9
mondrakeMaybe we can just return NULL from ::queryRange of test drivers, that makes the entire class dead code.
Comment #10
mondrakeI do not think this is minor.
Comment #11
daffie commentedAll the code changes llok good to me.
The class StatementEmpty has a deprecation and it is tested.
I have updated the CR.
For me it is RTBC.
Comment #12
catchNice clean-up.
Committed c72c953 and pushed to 9.2.x. Thanks!
Comment #14
catch