Skip to content

Commit cb9ec89

Browse files
Simplified dialect check in parse_create_trigger
1 parent 2163b34 commit cb9ec89

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/parser/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5581,7 +5581,6 @@ impl<'a> Parser<'a> {
55815581
is_constraint: bool,
55825582
) -> Result<Statement, ParserError> {
55835583
if !dialect_of!(self is PostgreSqlDialect | SQLiteDialect | GenericDialect | MySqlDialect | MsSqlDialect)
5584-
|| dialect_of!(self is SQLiteDialect) && (or_alter || or_replace || is_constraint)
55855584
{
55865585
self.prev_token();
55875586
return self.expected("an object type after CREATE", self.peek_token());

0 commit comments

Comments
 (0)