Opened 8 years ago
Last modified 6 years ago
#12848 new enhancement
Add an ifnull function to database connection classes
| Reported by: | Ryan J Ollos | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | next-major-releases |
| Component: | database backend | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Copied from 12841#comment:2:
One proposed change in [9f25cdfb3/rjollos.git].
When the group heading is NULL, it would be nice if Milestone (empty) was shown rather than just (empty). We could add an isnull function for each connection class and modify the reports. For example, on SQLite for report {3} we'd have:
- 'Milestone '||milestone AS __group__, + 'Milestone '||ifnull(milestone,'(empty)') AS __group__,
I don't think it would be worth fixing up existing reports through a database upgrade step, but we could modify the reports in the database to affect new installations and add a note to TracUpgrade about how to manually modify reports.
Attachments (0)
Change History (4)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Replying to Jun Omae:
Replying to Ryan J Ollos:
For example, on SQLite for report {3} we'd have:
- 'Milestone '||milestone AS __group__, + 'Milestone '||ifnull(milestone,'(empty)') AS __group__,If
'(empty)'is embedded in the report,(empty)cannot be translated.
Will need to address this somehow in implementation.
comment:4 by , 6 years ago
| Milestone: | next-dev-1.5.x → next-major-releases |
|---|



COALESCE()is portable.