[freetds] a small patch

Thompson, Bill D (London) ThompBil at exchange.uk.ml.com
Tue Apr 8 10:23:12 EDT 2003


Hi,

found an issue with dblibrary calls dbhasretstat() and dbretstatus().
It seems these little indicators are not re-initialised...

here's a patchette for someone to apply to:

src/tds/mem.c

void
tds_free_all_results(TDSSOCKET *tds)
{
    tds_free_results(tds->res_info);
    tds->res_info = NULL;
    tds_free_param_results(tds->param_info);
    tds->param_info = NULL;
    tds_free_compute_results(tds->comp_info, tds->num_comp_info);
    tds->comp_info = NULL;
    tds->num_comp_info = 0;
+    tds->has_status = 0;
+    tds->ret_status = 0;
}

Thanks,

¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤

Bill Thompson
Securities Services Division
Merrill Lynch Europe

For very important information relating to this e-mail please click on this
link:  http://www.ml.com/legal_info.htm





More information about the FreeTDS mailing list