Ask a Question related to Coldfusion Database Access, Design and Development.
-
Barry Andre #1
Passing boolean parameters to Oracle
Hello there everyone.
I have just started to work with Oracle stored procedures. I have written a
procedure that takes a boolean value as one of its input parameters, but I
cannot find out how to get Coldfusion to pass the value in correctly. If I
execute the procedure within the Oracle client itself it works OK but CF always
gives the error "PLS-00306: wrong number or types of arguments in call to
'PROC_TEST' ORA-06550: line 1, column 7: PL/SQL: Statement ignored", no matter
how I try to pass my boolean value. I have tried to use all combinations of
CF_SQL_BIT and CF_SQL_INTEGER and "1" and "true" and "TRUE" in the
<cfprocparam> tag, but none of them are working. I guess I could change the
code to use an integer instead, but using a boolean for this example makes the
most sense.
If anyone has any ideas, that would be great.
Regards
Barry.
Barry Andre Guest
-
Passing Parameters To CFC
I am testing how to return data from a CFC within Flash Forms. I have a simple <cfselect> tag that will hold data returned from a CFC. This CFC... -
Boolean in Grid not passing the value
Hi again, using Flash Remoting under mac OS X with mysql 5.01, I have a grid that, once a row is selected, displays the information of the row in... -
passing parameters
Hi Michael, I think you want to modify the links in web control programmatically. You can add several Hyperlink controls to the user control,... -
Passing Parameters into NEW()
Is there any way that the NEW() of a web service can accept parameters ? I would like to pass a boolean to indicate to the webservice that I am in... -
Help Passing Parameters
Before going to the third script I'd suggest storing the variables in session variables. Here's how I generally do login scripts. Perhaps have... -
paross1 #2
Re: Passing boolean parameters to Oracle
Th PL/SQL Boolean datatype can be used only within PL/SQL, and is
not considered a "valid" datatype by the Oracle RDBMS. In other words, you
can't use Boolean outside of PL/SQL. Consider that you can not create a column
of type Boolean in an Oracle table -- you can neither SELECT into a Boolean
variable nor insert a TRUE or FALSE value directly into a database column.
If you can, you should change the PL/SQL stored procedure parameter to a type
that you can pass from ColdFusion, such as bit or int, then "convert" the
passed value to a boolean within the procedure if you really need the
functionality of a Boolean variable within your PL/SQL.
Phil
paross1 Guest



Reply With Quote

