Skip to Content.
Sympa Menu

freetds - [freetds] ctlib - Stored Proc Return Status

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: <iain.calder AT blueyonder.co.uk>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] ctlib - Stored Proc Return Status
  • Date: Thu, 29 Jan 2004 09:41:25 -0000

Problem: Stored procedure return values obtained when the result type is
CS_STATUS_RESULT are always 0

Looking in ct.c _ct_process_return_status() initially calls
tds_free_all_results(tds) which sets tds->ret_status to 0.

What's the correct fix here - is it to take a copy of tds->ret_status before
calling tds_free_all_results(), or should _ct_process_return_status() call
tds_free_results() instead of tds_free_all_results()?

Iain




Archive powered by MHonArc 2.6.24.

Top of Page