Skip to content

Commit f00df6b

Browse files
committed
sql: mark ParamType::MapAny as polymorphic
Also use an exhaustive match statement, rather than the matches! macro, so that future additions to ParamType cause compiler errors in this method.
1 parent ab995ab commit f00df6b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/sql/src/plan/func.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,10 +576,11 @@ impl ParamType {
576576
}
577577

578578
fn is_polymorphic(&self) -> bool {
579-
matches!(
580-
self,
581-
Self::ArrayAny | Self::ListAny | Self::ListElementAny | Self::NonVecAny
582-
)
579+
use ParamType::*;
580+
match self {
581+
ArrayAny | ListAny | MapAny | ListElementAny | NonVecAny => true,
582+
Any | Plain(_) => false,
583+
}
583584
}
584585
}
585586

0 commit comments

Comments
 (0)