PRB: Cannot Use Boolean Parameter with Oracle (306530)
The information in this article applies to:
- Microsoft ODBC for Oracle version 2.5 Build 2.573.2927
- Microsoft ODBC for Oracle version 2.5 Build 2.573.4403
- Microsoft ODBC for Oracle version 2.5 Build 2.573.6526
- Microsoft ODBC for Oracle version 2.5 Build 2.573.7713.2
- Microsoft OLE DB Provider for Oracle 2.7
- Microsoft OLE DB Provider for Oracle 2.0
- Microsoft OLE DB Provider for Oracle 2.1
- Microsoft OLE DB Provider for Oracle 2.5
- Microsoft OLE DB Provider for Oracle 2.6
This article was previously published under Q306530 SYMPTOMS
If you try to use the BOOLEAN data type as an input or output parameter type with an Oracle stored procedure, you may receive the following error message:
Wrong number or types of arguments in call to 'SP_Name'
where 'SP_Name' is the name of the store procedure or function.
CAUSE
You cannot use the BOOLEAN data type as an input or output parameter type with an Oracle stored procedure. BOOLEAN is a PL/SQL data type and cannot be passed into or out of the Microsoft ActiveX Data Objects (ADO) Parameters collection.
RESOLUTION
To work around this problem, use a data type that is supported (such as varchar). For a list of supported data types, refer to the online help for Microsoft ODBC Driver for Oracle and OLE DB Provider for Oracle, which are available with the Windows Platform Software Development Kit (SDK). You can download the Windows Platform SDK from the following Microsoft Web site:
STATUS
This behavior is by design. The Oracle BOOLEAN data type is a PL/SQL data type and not an Oracle Database data type. The Microsoft Oracle Driver and Provider only support database data types.
Modification Type: | Major | Last Reviewed: | 4/5/2006 |
---|
Keywords: | kbDatabase kbDriver kbOracle kbprb kbProvider KB306530 |
---|
|