[freetds] [ freetds-Patches-1088672 ] dbsqlok eats too many end tokens

SourceForge.net noreply at sourceforge.net
Mon Dec 20 16:20:39 EST 2004


Patches item #1088672, was opened at 2004-12-20 15:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=1088672&group_id=33106

Category: db-lib
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Adrian Daley (agd)
Assigned to: Nobody/Anonymous (nobody)
Summary: dbsqlok eats too many end tokens

Initial Comment:
It appears that dbsqlok can eat the end token
for an empty result set so that the next dbresults
call will skip over it.  This may be similar to patch
744992 but the code has changed to need a different
patch.

The attached file shows tdsdump output before and
after the patch is applied.  The patch changes
dbsqlok to return SUCCEED for end tokens and let
dbresults process the information.  From what I
saw this affected end tokens at the beginning of
a packet.  With the patch applied all of the dblib
unit tests continue to pass including the test 18
that the patch updates to show the problem.

Please look over this change.  While the test cases
work fine and our application has used the change
for the last week I don't know if this overlooks
certain TDS situations.

Thank you,
Adrian Daley



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=1088672&group_id=33106



More information about the FreeTDS mailing list