﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
582	AT does not list all dataviews when connected to Oracle	bweaver	bweaver	"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."	defect	released	blocker	Release Candidate 3	Admin Tool	2.0.1600					Oracle	N/A
