mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Add DISCARD to the command_no_begin list for AUTOCOMMIT=off.
Backpatch to 8.3. Reported by Sergey Burladyan.
This commit is contained in:
parent
e701e91218
commit
60da196636
1 changed files with 3 additions and 0 deletions
|
|
@ -1388,6 +1388,9 @@ command_no_begin(const char *query)
|
|||
return true;
|
||||
}
|
||||
|
||||
if (wordlen == 7 && pg_strncasecmp(query, "discard", 7) == 0)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue