1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-12 02:37:31 +03:00

Adjusted psql echoing options (-a and -e)

This commit is contained in:
Peter Eisentraut
2000-02-13 21:45:15 +00:00
parent a2226ad237
commit 9672d38f91
9 changed files with 57 additions and 37 deletions

View File

@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.12 2000/02/07 23:10:06 petere Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.13 2000/02/13 21:45:14 petere Exp $
*/
#include <c.h>
#include "common.h"
@@ -382,7 +382,7 @@ SendQuery(const char *query)
else
{
const char * var = GetVariable(pset.vars, "ECHO");
if (var && strcmp(var, "brief")==0)
if (var && strncmp(var, "queries", strlen(var))==0)
puts(query);
}