Skip to Content.
Sympa Menu

freetds - Re: [freetds] dblib and output parameters of stored procedures

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: LacaK <lacak AT zoznam.sk>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] dblib and output parameters of stored procedures
  • Date: Tue, 01 Apr 2014 08:11:02 +0200

James K. Lowden wrote / napĂ­sal(a):
On Mon, 31 Mar 2014 08:15:29 +0200
LacaK <lacak AT zoznam.sk> wrote:

BTW what means message in tdsdump:
dblib.c:4742:..\..\src\dblib\dblib.c 4743: logic error: tds_process_tokens result_type 4043

That means result_type 4043 for TDS_SUCCESS code isn't handled. That
result_type is an output of tds_process_default_tokens representing a
TDS_STATUS_RESULT for a TDS_RETURNSTATUS packet.
Without looking further, the message may indicate that the return
status from a stored procedure was not correctly reported.
I do not know, but I can read correct "return status" using dbretstatus() function
(tested in MS SQL 2000 and 2012 both return same message: logic error: tds_process_tokens result_type 4043)

Thank you for assistance.
I attach trivial patch for win32/dblib.def Can you accept it please?
-Laco

--- dblib.def.ori Thu Mar 29 07:42:32 2012
+++ dblib.def Tue Apr 01 08:07:16 2014
@@ -28,6 +28,7 @@ EXPORTS
dbfcmd
dbfirstrow
dbfreebuf
+ dbhasretstat
dbinit
dbisavail
dbiscount
@@ -49,6 +50,7 @@ EXPORTS
dbopen
dbprtype
dbresults
+ dbretstatus
dbrows
dbrowtype



  • Re: [freetds] dblib and output parameters of stored procedures, LacaK, 04/01/2014

Archive powered by MHonArc 2.6.24.

Top of Page