troubleshooting Question

Oracle procedure and commas in multiple select string

Avatar of wjad
wjad asked on
Oracle DatabaseWeb ServersColdFusion Language
4 Comments2 Solutions4349 ViewsLast Modified:
In my cold fusion application I have a multiple select list. Once data is select from the multiple select list it is passed to an oracle procedure as an in parameter and used in the IN clause of my query.

Im using the following cold fusion code to pass comma separated values to procedure from cold fusion multiple select list:
<CFSET v_list = #ListChangeDelims(FORM.listRight,"','", ",")#>

And used it in my procedure call as follows:
<cfprocparam dbvarname="p_list_right" cfsqltype="cf_sql_varchar"  value=#v_list# type="in">

The above works fine if there is no commas in the listRight string. In case there are commas, no data set is returned. How do I resolve this issue?  I was asked to use array, by not sure.

Thanks!
ASKER CERTIFIED SOLUTION
Sujith
Data Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros