Skip to content

Commit bbc7f4e

Browse files
Rename parse_operator_signature to parse_drop_operator_signature
1 parent fab39fe commit bbc7f4e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/ast/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ pub use self::ddl::{
6767
ColumnPolicyProperty, ConstraintCharacteristics, CreateConnector, CreateDomain,
6868
CreateExtension, CreateFunction, CreateIndex, CreateOperator, CreateOperatorClass,
6969
CreateOperatorFamily, CreateTable, CreateTrigger, CreateView, Deduplicate, DeferrableInitial,
70-
DropBehavior, DropExtension, DropFunction, DropOperator, DropTrigger, GeneratedAs,
71-
GeneratedExpressionMode, IdentityParameters, IdentityProperty, IdentityPropertyFormatKind,
72-
IdentityPropertyKind, IdentityPropertyOrder, IndexColumn, IndexOption, IndexType,
73-
KeyOrIndexDisplay, Msck, NullsDistinctOption, OperatorArgTypes, OperatorClassItem,
74-
OperatorPurpose, DropOperatorSignature, Owner, Partition, ProcedureParam, ReferentialAction,
70+
DropBehavior, DropExtension, DropFunction, DropOperator, DropOperatorSignature, DropTrigger,
71+
GeneratedAs, GeneratedExpressionMode, IdentityParameters, IdentityProperty,
72+
IdentityPropertyFormatKind, IdentityPropertyKind, IdentityPropertyOrder, IndexColumn,
73+
IndexOption, IndexType, KeyOrIndexDisplay, Msck, NullsDistinctOption, OperatorArgTypes,
74+
OperatorClassItem, OperatorPurpose, Owner, Partition, ProcedureParam, ReferentialAction,
7575
RenameTableNameKind, ReplicaIdentity, TagsColumnOption, TriggerObjectKind, Truncate,
7676
UserDefinedTypeCompositeAttributeDef, UserDefinedTypeInternalLength,
7777
UserDefinedTypeRangeOption, UserDefinedTypeRepresentation, UserDefinedTypeSqlDefinitionOption,

src/parser/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7531,7 +7531,7 @@ impl<'a> Parser<'a> {
75317531
///
75327532
pub fn parse_drop_operator(&mut self) -> Result<Statement, ParserError> {
75337533
let if_exists = self.parse_keywords(&[Keyword::IF, Keyword::EXISTS]);
7534-
let operators = self.parse_comma_separated(|p| p.parse_operator_signature())?;
7534+
let operators = self.parse_comma_separated(|p| p.parse_drop_operator_signature())?;
75357535
let drop_behavior = self.parse_optional_drop_behavior();
75367536
Ok(Statement::DropOperator(DropOperator {
75377537
if_exists,
@@ -7542,7 +7542,7 @@ impl<'a> Parser<'a> {
75427542

75437543
/// Parse an operator signature for a [Statement::DropOperator]
75447544
/// Format: `name ( { left_type | NONE } , right_type )`
7545-
fn parse_operator_signature(&mut self) -> Result<DropOperatorSignature, ParserError> {
7545+
fn parse_drop_operator_signature(&mut self) -> Result<DropOperatorSignature, ParserError> {
75467546
let name = self.parse_operator_name()?;
75477547
self.expect_token(&Token::LParen)?;
75487548

0 commit comments

Comments
 (0)