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

Commit112c3fc

Browse files
committed
Fix another small oversight in command_no_begin patch.
Need a "return false" to prevent tests from continuing after we've movedthe "query" pointer. As it stood, it'd accept "DROP DISCARD ALL" as amatch.
1 parentae9acb6 commit112c3fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/bin/psql/common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,7 @@ command_no_begin(const char *query)
13861386
return true;
13871387
if (wordlen==10&&pg_strncasecmp(query,"tablespace",10)==0)
13881388
return true;
1389+
return false;
13891390
}
13901391

13911392
/* DISCARD ALL isn't allowed in xacts, but other variants are allowed. */
@@ -1401,6 +1402,7 @@ command_no_begin(const char *query)
14011402

14021403
if (wordlen==3&&pg_strncasecmp(query,"all",3)==0)
14031404
return true;
1405+
return false;
14041406
}
14051407

14061408
return false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp