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

Commit6fc6686

Browse files
committed
Clean up parsing of CREATE TRIGGER's argument list.
Use ColLabel in place of ColId, so that reserved words are accepted as ifthey were not reserved. Also, remove BCONST and XCONST, which were neverdocumented as allowed. Allowing those exposes to users an implementationdetail, namely the format in which the lexer outputs such constants, thatseems unwise to expose.No documentation change needed, since this just makes the code act morelike you'd expect from reading the CREATE TRIGGER man page.Per complaint from Szymon Guz and subsequent discussion.
1 parenta0c8514 commit6fc6686

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎src/backend/parser/gram.y

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4126,9 +4126,7 @@ TriggerFuncArg:
41264126
}
41274127
|FCONST{$$ = makeString($1); }
41284128
|Sconst{$$ = makeString($1); }
4129-
|BCONST{$$ = makeString($1); }
4130-
|XCONST{$$ = makeString($1); }
4131-
|ColId{$$ = makeString($1); }
4129+
|ColLabel{$$ = makeString($1); }
41324130
;
41334131

41344132
OptConstrFromTable:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp