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

Commit0dc24cb

Browse files
michaelpqpull[bot]
authored andcommitted
Fix operator typo in tablecmds.c
A bitwise operator was getting used on two bools inATAddCheckConstraint() to track if constraints should be merged or notwith the existing ones of a relation, though obviously this should usea boolean OR operator. This led to the same result, but let's beclean.Oversight in074c5cf.Author: Ranier VilelaReviewed-by: Justin PryzbyDiscussion:https://postgr.es/m/CAEudQAp2R2fbbi0OHHhv_n4=Ch0t1VtjObR9YMqtGKHJ+faUFQ@mail.gmail.com
1 parent04218d0 commit0dc24cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8863,7 +8863,7 @@ ATAddCheckConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
88638863
*/
88648864
newcons = AddRelationNewConstraints(rel, NIL,
88658865
list_make1(copyObject(constr)),
8866-
recursing | is_readd,/* allow_merge */
8866+
recursing || is_readd,/* allow_merge */
88678867
!recursing, /* is_local */
88688868
is_readd,/* is_internal */
88698869
NULL);/* queryString not available

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp