From: Bruce Momjian Date: Wed, 27 Nov 1996 13:47:05 +0000 (+0000) Subject: Allow all empty queries to return EMPTY. X-Git-Tag: REL2_0~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79b1a0ff3525c75e6601a6a4e143b4fb49af2237;p=postgresql Allow all empty queries to return EMPTY. --- diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index fa06c53b0c..9faa69e402 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.21 1996/11/18 02:26:57 bryanh Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.22 1996/11/27 13:47:05 momjian Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -1262,7 +1262,7 @@ PostgresMain(int argc, char *argv[]) */ if (IsUnderPostmaster == false) { puts("\nPOSTGRES backend interactive interface"); - puts("$Revision: 1.21 $ $Date: 1996/11/18 02:26:57 $"); + puts("$Revision: 1.22 $ $Date: 1996/11/27 13:47:05 $"); } /* ---------------- @@ -1387,7 +1387,7 @@ PostgresMain(int argc, char *argv[]) case 'Q': fflush(stdout); - if ( parser_input[0] == ' ' && parser_input[1] == '\0' ) { + if ( strspn(parser_input," \t\n") == strlen(parser_input)) { /* ---------------- * if there is nothing in the input buffer, don't bother * trying to parse and execute anything..