Subject | isc_interprete and isc_sql_interprete |
---|---|
Author | bill2janesoft@gmail.com |
Post date | 2008-04-25T10:17:51Z |
I just follow an example in API guide to test error code,
supply an invalid password in pdb argument to isc_attach_database, then
immediately test for error,
"isc_interprete" works but what should be minimum size of msg buffer to avoid
overflow?
isc_interprete (msg , &pstatusvec)
for example:
Your user name and password are not defined. Ask your database administrator to
set up a Firebird login.
But "isc_sql_interprete" does not work,
sqlcode=isc_sqlcode (statusvec)
isc_sql_interprete (sqlcode , msg, 512)
it always return:
Unsuccessful execution caused by a system error that precludes
successful execution of subsequent statements
how to use isc_sql_interprete?
regards,
supply an invalid password in pdb argument to isc_attach_database, then
immediately test for error,
"isc_interprete" works but what should be minimum size of msg buffer to avoid
overflow?
isc_interprete (msg , &pstatusvec)
for example:
Your user name and password are not defined. Ask your database administrator to
set up a Firebird login.
But "isc_sql_interprete" does not work,
sqlcode=isc_sqlcode (statusvec)
isc_sql_interprete (sqlcode , msg, 512)
it always return:
Unsuccessful execution caused by a system error that precludes
successful execution of subsequent statements
how to use isc_sql_interprete?
regards,