Well, I'd generally not design it like that. A stored procedure should do one of two things: return the variable it says it will return or throw an error. I'd probably have it throw a custom oracle error if the person doesn't have permission to run it, and do a try catch in CF to trap that specific error.
On 11/17/05, Steve Ray <[EMAIL PROTECTED]> wrote: > > I'm dealing with an Oracle stored procedure which is coded to only return > it's ref cursor if a lookup function within the procedure verifies that the > user has rights to run it. If the user doesn't have the correct rights, a > message gets returned *instead*. > > I've coded a cfprocparam to handle the message, and a cfprocresult to > handle the ref cursor. But, the ref cursor doesn't get returned if the user > doesn't have rights to run the procedure. When this happens, I get the > following error from the driver: [Macromedia][Oracle JDBC > Driver][Oracle]ORA-06502: PL/SQL: numeric or value error: character to > number conversion error ORA-06512: at line 1 > > I'm thinking that this is cuz I've coded for a cfprocresult which isn't > returned. Can anyone suggest a way around this issue? This is with CFMX > 6.1, using the latest JDBC drivers with Oracle 9.2. Thanks. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224518 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

