Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit79b1a0f

Browse files
committed
Allow all empty queries to return EMPTY.
1 parent9c0afea commit79b1a0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* 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 $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -1262,7 +1262,7 @@ PostgresMain(int argc, char *argv[])
12621262
*/
12631263
if (IsUnderPostmaster== false) {
12641264
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 $");
12661266
}
12671267

12681268
/* ----------------
@@ -1387,7 +1387,7 @@ PostgresMain(int argc, char *argv[])
13871387
case'Q':
13881388
fflush(stdout);
13891389

1390-
if (parser_input[0]==' '&&parser_input[1]=='\0') {
1390+
if (strspn(parser_input," \t\n")==strlen(parser_input)) {
13911391
/* ----------------
13921392
* if there is nothing in the input buffer, don't bother
13931393
* trying to parse and execute anything..

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp