Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d08c698

Browse files
committed
Add DISCARD to the command_no_begin list for AUTOCOMMIT=off.
Backpatch to 8.3. Reported by Sergey Burladyan.
1 parent 4d355a8 commit d08c698

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bin/psql/common.c

+3
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,9 @@ command_no_begin(const char *query)
13881388
return true;
13891389
}
13901390

1391+
if (wordlen == 7 && pg_strncasecmp(query, "discard", 7) == 0)
1392+
return true;
1393+
13911394
return false;
13921395
}
13931396

0 commit comments

Comments
 (0)