Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd08c698

Browse files
committed
Add DISCARD to the command_no_begin list for AUTOCOMMIT=off.
Backpatch to 8.3.Reported by Sergey Burladyan.
1 parent4d355a8 commitd08c698

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/bin/psql/common.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,9 @@ command_no_begin(const char *query)
13881388
return true;
13891389
}
13901390

1391+
if (wordlen==7&&pg_strncasecmp(query,"discard",7)==0)
1392+
return true;
1393+
13911394
return false;
13921395
}
13931396

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp