Skip to Content.
Sympa Menu

freetds - [freetds] small patches in my tree.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: christos AT zoulas.com (Christos Zoulas)
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] small patches in my tree.
  • Date: Wed, 23 Aug 2006 14:16:16 -0400

Hello,

1. Document -o in tsql:
2. Don't spew random status messages when quiet.

christos

Index: doc/tsql.txt
===================================================================
RCS file: /src/twosigma/cvsroot/external/public/freetds/doc/tsql.txt,v
retrieving revision 1.1.1.2
diff -u -u -r1.1.1.2 tsql.txt
--- tsql.txt 5 Jan 2004 19:24:25 -0000 1.1.1.2
+++ tsql.txt 23 Aug 2006 18:02:06 -0000
@@ -2,7 +2,7 @@
tsql - utility to test FreeTDS connections and queries
SYNOPSIS
tsql {-S servername [-I inside] | -H hostname -p port}
- -U username [-P password]
+ -U username [-P password] [-o option]

tsql -C

@@ -45,6 +45,13 @@

-C prints some of the compile-time configuration parameters.

+ -o [fhtvq] Apply the options specified to every command.
+
+ -f No footer [result count]
+ -h No header [titles]
+ -t Print time
+ -v Print version
+ -q Quiet

NOTES

Index: apps/tsql.c
===================================================================
RCS file: /src/twosigma/cvsroot/external/public/freetds/src/apps/tsql.c,v
retrieving revision 1.8
diff -u -u -r1.8 tsql.c
--- apps/tsql.c 24 Apr 2006 21:16:06 -0000 1.8
+++ apps/tsql.c 23 Aug 2006 18:05:18 -0000
@@ -195,7 +195,9 @@
}
break;
case TDS_STATUS_RESULT:
- printf("(return status = %d)\n", tds->ret_status);
+ if (!QUIET)
+ printf("(return status = %d)\n",
+ tds->ret_status);
break;
default:
break;




Archive powered by MHonArc 2.6.24.

Top of Page