Skip to content

Commit 112c3fc

Browse files
committed
Fix another small oversight in command_no_begin patch.
Need a "return false" to prevent tests from continuing after we've moved the "query" pointer. As it stood, it'd accept "DROP DISCARD ALL" as a match.
1 parent ae9acb6 commit 112c3fc

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy