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
78b0a0d8c0
commit
b66c4fb322
@ -1369,6 +1369,9 @@ command_no_begin(const char *query)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wordlen == 7 && pg_strncasecmp(query, "discard", 7) == 0)
|
||||||
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user