|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.21 1996/11/18 02:26:57 bryanh Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.22 1996/11/27 13:47:05 momjian Exp $ |
11 | 11 | *
|
12 | 12 | * NOTES
|
13 | 13 | * this is the "main" module of the postgres backend and
|
@@ -1262,7 +1262,7 @@ PostgresMain(int argc, char *argv[])
|
1262 | 1262 | */
|
1263 | 1263 | if (IsUnderPostmaster== false) {
|
1264 | 1264 | puts("\nPOSTGRES backend interactive interface");
|
1265 |
| -puts("$Revision: 1.21 $ $Date: 1996/11/18 02:26:57 $"); |
| 1265 | +puts("$Revision: 1.22 $ $Date: 1996/11/27 13:47:05 $"); |
1266 | 1266 | }
|
1267 | 1267 |
|
1268 | 1268 | /* ----------------
|
@@ -1387,7 +1387,7 @@ PostgresMain(int argc, char *argv[])
|
1387 | 1387 | case'Q':
|
1388 | 1388 | fflush(stdout);
|
1389 | 1389 |
|
1390 |
| -if (parser_input[0]==' '&&parser_input[1]=='\0') { |
| 1390 | +if (strspn(parser_input," \t\n")==strlen(parser_input)) { |
1391 | 1391 | /* ----------------
|
1392 | 1392 | * if there is nothing in the input buffer, don't bother
|
1393 | 1393 | * trying to parse and execute anything..
|
|