Skip to Content.
Sympa Menu

freetds - Re: [freetds] small patches in my tree.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] small patches in my tree.
  • Date: Wed, 23 Aug 2006 21:46:50 +0200

Il giorno mer, 23/08/2006 alle 14.16 -0400, Christos Zoulas ha scritto:
> 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
>

applied with your post hints and some (small) updates

> 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;

Mmm... are you sure? What happen if someone wants the store procedure
results?

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page