Re: dblib and output parameters of stored procedures

LacaK <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
James K. Lowden  wrote / napísal(a):
> On Mon, 31 Mar 2014 08:15:29 +0200
> LacaK <[email protected]> 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

_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
dblib.def.diff (text/plain, 285 B)
--- 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.