Oracle Application Express (MOSC)

MOSC Banner

Interactive Report Bind Variable Evaluation - Bug?

edited Sep 28, 2011 4:20AM in Oracle Application Express (MOSC) 6 commentsAnswered
I have a table with a column whose data contains commas.  When an equals filter is created against this column the results are accurate.  However, if you use an "in" filter the results do not contain all of the expected results.  When you look at the debug information to see how the query was written/performed you see this:
where ("PARAMETER" in (:APXWS_EXPR_VAL1_1, :APXWS_EXPR_VAL2_1)


So when the system substitutes the parameter names into the bind variables  you end up with


APXWS_EXPR_VAL1_1 = Fecal Coliform
APXWS_EXPR_VAL2_1 = Coliform, Fecal


Because the second parameter name has a comma in it, the executed query ends up behaving like it has three values in it.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center