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

Home -> Community -> Usenet -> c.d.o.server -> Oracle ODBC Driver does not allow DEFAULT parameters

Oracle ODBC Driver does not allow DEFAULT parameters

From: Josh Miller <jmillerNOSPAM_at_mediabinNOSPAM.com>
Date: 2000/05/15
Message-ID: <39206b08$0$16876@wodc7nh0.news.uu.net>#1/1

Can anyone confirm this, because I can find no documentation on it.

I have a PL/SQL procedure with several parameters that have DEFAULT values, which is being called from a C++ app using ODBC. If I try just omitting the parameter markers in the procedure call, SQLExecDirect simply fails and I get no errors or diagnostic records using either SQLGetDiagRec or SQLError. If I try placing parameter markers in the procedure call then specify to the driver that I want to use the default values using the following SQLBindParameter call

    SQLINTEGER sqldefault=SQL_DEFAULT_PARAM;

    rc = SQLBindParameter(hstmt,

                          5,
                          SQL_PARAM_INPUT,
                          SQL_C_CHAR,
                          SQL_CHAR,
                          0,
                          0,
                          NULL,
                          0,
                          &sqldefault);

I get an error when I try to execute the procedure that says "Driver not capable".

Does anyone know for certain if there's a way to use default parameters of if it's simply not supported?

TIA,
Josh Miller Received on Mon May 15 2000 - 00:00:00 CDT

Original text of this message

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