Opened 16 years ago
Last modified 16 years ago
#582 released defect
AT does not list all dataviews when connected to Oracle
| Reported by: | bweaver | Owned by: | bweaver |
|---|---|---|---|
| Priority: | blocker | Milestone: | Release Candidate 3 |
| Component: | Admin Tool | Version: | 2.0.1600 |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | Oracle | |
| Operating System: | N/A |
Description
When hitting Oracle, the AT does not show all available dataviews. This is because there are several statements in the AT which use a 'bottom out' coalesce to do optional where clauses, such as the following:
coalesce(:categorycode, category_code, '') = coalesce(category_code, '')
That works perfectly on sql server/mysql/postgresql, but does not match in Oracle. Oracle treats the exact same as NULL, and NULL = NULL is ALWAYS false (as is NULL <> NULL), so the where does not function as intended.
All hard coded SQL in the AT must be altered to use the similar approach:
coalesce(:categorycode, category_code, '\b') = coalesce(category_code, '\b')
\b is the "backspace" character -- i.e. one nobody can ever type. \b is not interpreted in Oracle to be the same as NULL, so this version of coalesce works as intended.
Change History (6)
comment:1 by , 16 years ago
| Status: | new → addressed |
|---|
comment:2 by , 16 years ago
| Status: | addressed → released |
|---|
comment:3 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | released → closed |
comment:4 by , 16 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:6 by , 16 years ago
| Status: | addressed → released |
|---|

(In [1625]) - fixes #582