[freetds] [ freetds-Patches-1095806 ] patches for RC5

James K. Lowden jklowden at schemamania.org
Tue Jan 4 23:21:33 EST 2005


> Patches item #1095806, was opened at 2005-01-04 15:21
...
> Category: db-lib
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Bill Thompson (thompbil)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: patches for RC5
> 
> Initial Comment:
> here is my patch for RC5 as promised.
> 
> This patch fixes the following issues raised with 0.63 RC5
> 
> 1) dbsqlok eats too many end tokens
> 2) James' problem with PRINT statements
> 3) a small problem with CHAR/VARCHAR parameters in 
> dbrpcparam().

Applied to cvs HEAD, for now.  An improvement, clearly, but I'm not sure
it's exactly right.  

$ echo " print 'hi' select 'a' as a, 1 as one print 'bye'" | bsqldb -U$U
-P$P -S$S
Msg 5701, Level 10, State 2
Server 'test', 
        Changed database context to 'master'.

Msg 0, Level 10, State 1
Server 'test', Line 1
        hi
@@rowcount not available
a          one
-  -----------
a            1
1 rows affected
Msg 0, Level 10, State 1
Server 'test', Line 1
        bye
@@rowcount not available

Those "@@rowcount not available" indicate that dbnextresults() is still
returning something when the print packet arrives.  Does that duplicate
the vendor libraries' behavior?  

--jkl


More information about the FreeTDS mailing list