Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> ODBC SQL NULL conversion
ODBC SQL NULL conversion
Within the Visual C++-code, calls are made to Oracle PL/SQL procedures, stored in a database. To accomplish this, ODBC is used for type conversion. The stored procedures consist of a number of parameters, which can be input, output or input/output parameters. In some cases the input/output parameters require (SQL) NULL values for input. The output value of these parameters could either be a NULL value or a real value.
ODBC offers a function, called SQLBindParameter, that can be used to bind application parameters to to parameter markers in a SQL statement. One of the arguments in SQLBindParameter is called PCBVALUE; this (pointer) argument could contain the value SQL_NULL_DATA. This would mean that the PL/SQL parameter receives a SQL NULL value.
It doesn't seem possible to pass an input/output parameter from Visual C++ through ODBC to PL/SQL with the SQL value NULL, not even with the SQLBindParameter function.
![]() |
![]() |