Re: double sqlexec();
"James K. Lowden" <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
asdf asdf wrote: > > Hellow, i have one question. When i call system functions > sqlexec(dbbproc) should i clear some buffers after that? Normally no. Cf. DBNOAUTOFREE (http://msdn.microsoft.com/en-us/library/aa937147(SQL.80).aspx) > i received a mistake in sqlexec(db_) functions "FreeTDS: db-lib: exiting > because client error handler returned 20002 for msgno 20019" http://manuals.sybase.com/onlinebooks/group-cnarc/cng1110e/dblib/@Generic__BookTextView/16561;pt=39614 http://msdn.microsoft.com/en-us/library/aa937031(SQL.80).aspx Your error handler must return one of INT_EXIT, INT_CANCEL, or INT_CONTINUE. It cannot return 20002. Interestingly, the vendors disagree on what to do if the error handler returns an invalid value. Sybase says abort; Microsoft says continue. --jkl