mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08: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
4d355a8336
commit
d08c698d9d
@ -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 New Issue
Block a user