Skip to Content.
Sympa Menu

freetds - [freetds] [PATCH] Fix sqsh annoyance

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Alex Kiesel <alex.kiesel AT document-root.de>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] [PATCH] Fix sqsh annoyance
  • Date: Sat, 18 Oct 2003 14:51:24 +0200

Hi,

some time ago I've reported an annoying bug in sqsh (which is caused by
FreeTDS). The bug was that sqsh repeatedly returned the number of
retrieved rows and thus made the whole result unreadable (please see
message <1056569791.258.28.camel AT detention.home.ahk> on this list (dated
25 Jun 2003 21:36:31) for more details.

Attached is a simple patch which fixes it. Can somebody have a look at
it and commit it?

Btw: the other bug mentioned in the mail has been fixed now - thank you
for that. :-)

Greets from Karlsruhe,
Alex
Index: src/ctlib/ct.c
===================================================================
RCS file: /cvsroot/freetds/freetds/src/ctlib/ct.c,v
retrieving revision 1.104
diff -u -r1.104 ct.c
--- src/ctlib/ct.c	25 Sep 2003 21:14:24 -0000	1.104
+++ src/ctlib/ct.c	18 Oct 2003 12:47:43 -0000
@@ -858,7 +858,9 @@
 							*result_type = CS_ROW_RESULT;
 						}
 					} else {
-						*result_type = CS_CMD_DONE;
+						/* No new results have been returned, check next token */
+						*result_type= CS_ROW_RESULT;
+						break;
 					}
 				} else
 					*result_type = CS_CMD_SUCCEED;



Archive powered by MHonArc 2.6.24.

Top of Page