Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
database system
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Oct 2009 at 21:37 UTC
Updated:
22 Jan 2010 at 07:50 UTC
Jump to comment: Most recent file
The SearchQuery::execute() method currently returns FALSE when the normalization query failed. This makes the rest of the database layer choke when, for example, you try to extend a SearchQuery-extended query by a PagerQuery.
Discussed with Larry on #drupal: the proper solution is to add a DatabaseStatementEmpty class that properly implement DatabaseStatementInterface.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | empty-result.patch | 5.38 KB | Crell |
Comments
Comment #1
dries commentedThis makes sense to me. It sounds like it could be a relatively small change acceptable for D7.
Comment #2
Crell commentedThis passes the relevant tests for me. Nice and simple.
Comment #3
damien tournoud commentedThat looks perfect to me, thanks Larry.
Comment #5
Crell commentedStill green. This is DamZ's RTBC, not mine, I'm just verifying the bot. :-)
Comment #6
webchickCommitted to HEAD, with the addition of a @see SearchQuery, since I would otherwise have no idea what the heck you guys were talking about. ;) This is not really the fault of the description, though, which is accurate.