[unixODBC-support] question about catalog functions and bound parameters

martin.evans at easysoft.com martin.evans at easysoft.com
Mon Feb 14 20:02:47 GMT 2005

I'm not sure where you are coming from here. Although there may be
bound parametes they are just entries in the apd - for a catalog function
there is nothing to retrieve from the application. You can bind a parameter
at almost any time but it is only used if there is a parameter marker
in the SQL.

Create stmt
SQLTables - parameter ignored
SQLPrepare(select * from table where column  ?
SQLExecute - parameter used

Did you mean bound column?


Quoting Eric Sharkey <sharkey at netrics.com>:

> I have a generic question about bound parameters and catalog functions.
> The ODBC docs on MSDN say:
>   A variable remains bound to a parameter until a different variable
>   is bound to the parameter, until all parameters are unbound by calling
>   SQLFreeStmt with the SQL_RESET_PARAMS option, or until the statement
>   is released.
> My question is, what is supposed to happen if a statement handle
> with bound parameters is used in a catalog function like SQLTables()?
> Since, conceptually, all catalog functions are equivalent to executing
> an unknown statement on a handle, should bound parameters be unbound
> by the catalog function, or preserved?
> Eric
> _______________________________________________
> unixODBC-support mailing list
> unixODBC-support at easysoft.com
> http://mail.easysoft.com/mailman/listinfo/unixodbc-support

More information about the unixODBC-support mailing list