Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> ODBC SQL NULL conversion

ODBC SQL NULL conversion

From: Ed. Doesburg <edd_at_worldonline.nl>
Date: 1996/12/03
Message-ID: <01bbe09e$cde4d040$465114ac@edoesburg.hoofddorp.att-unisource.com>#1/1

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.

Received on Tue Dec 03 1996 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US