mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 21:42:05 +00:00
Add DROP TRIGGER
support for SQL Server (#1813)
This commit is contained in:
parent
896c088153
commit
6566c47593
2 changed files with 16 additions and 1 deletions
|
@ -5177,7 +5177,7 @@ impl<'a> Parser<'a> {
|
|||
/// DROP TRIGGER [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ]
|
||||
/// ```
|
||||
pub fn parse_drop_trigger(&mut self) -> Result<Statement, ParserError> {
|
||||
if !dialect_of!(self is PostgreSqlDialect | GenericDialect | MySqlDialect) {
|
||||
if !dialect_of!(self is PostgreSqlDialect | GenericDialect | MySqlDialect | MsSqlDialect) {
|
||||
self.prev_token();
|
||||
return self.expected("an object type after DROP", self.peek_token());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue