[freetds] ODBC unimplemented functions excluded?
Craig A. Berry
craigberry at mac.com
Thu Jan 30 19:43:33 EST 2003
Apologies if this has been discussed before but I haven't been able
to find anything in the archives. It looks like for functions that
are not yet implemented there are nice stubs that would properly
report their unimplemented status at run-time. So why are there
hard-code compile-time exclusions as in the following example from
src/odbc/odbc.c?
#if 0
SQLRETURN SQL_API
SQLNativeSql(SQLHDBC hdbc, SQLCHAR FAR * szSqlStrIn, SQLINTEGER cbSqlStrIn, SQLCHAR FAR * szSqlStr, SQLINTEGER cbSqlStrMax,
SQLINTEGER FAR * pcbSqlStr)
{
INIT_HDBC;
odbc_errs_add(&dbc->errs, ODBCERR_NOTIMPLEMENTED, "SQLNativeSql: function not implemented");
return SQL_ERROR;
}
#endif
--
________________________________________
Craig A. Berry
mailto:craigberry at mac.com
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser
More information about the FreeTDS
mailing list