Skip to content

Commit 833f138

Browse files
committed
Support DELETE stmts
1 parent 23e0b00 commit 833f138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/tcop/postgres.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ exec_simple_query(const char *query_string)
11131113
/*
11141114
* Set up a snapshot if parse analysis/planning will need one.
11151115
*/
1116-
if (analyze_requires_snapshot(parsetree) || commandTag == CMDTAG_SELECT || commandTag == CMDTAG_INSERT || commandTag == CMDTAG_UPDATE)
1116+
if (analyze_requires_snapshot(parsetree) || commandTag == CMDTAG_SELECT || commandTag == CMDTAG_INSERT || commandTag == CMDTAG_UPDATE|| commandTag == CMDTAG_DELETE)
11171117
{
11181118
PushActiveSnapshot(GetTransactionSnapshot());
11191119
snapshot_set = true;

0 commit comments

Comments
 (0)