Commit d08c698d authored by Itagaki Takahiro's avatar Itagaki Takahiro

Add DISCARD to the command_no_begin list for AUTOCOMMIT=off.

Backpatch to 8.3.

Reported by Sergey Burladyan.
parent 4d355a83
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment