Skip to content

Commit 9bdc892

Browse files
committed
Correct visit_select annotations
1 parent ae9bcaf commit 9bdc892

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/ast/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9946,7 +9946,7 @@ pub enum CreateFunctionBody {
99469946
/// ```
99479947
///
99489948
/// [MsSql]: https://learn.microsoft.com/en-us/sql/t-sql/statements/create-function-transact-sql?view=sql-server-ver16#select_stmt
9949-
AsReturnSelect(#[cfg_attr(feature = "visitor", visit(with = "visit_select"))] Select),
9949+
AsReturnSelect(Select),
99509950
}
99519951

99529952
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]

src/ast/query.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ impl fmt::Display for ProjectionSelect {
149149
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
150150
pub enum SetExpr {
151151
/// Restricted SELECT .. FROM .. HAVING (no ORDER BY or set operations)
152-
Select(#[cfg_attr(feature = "visitor", visit(with = "visit_select"))] Box<Select>),
152+
Select(Box<Select>),
153153
/// Parenthesized SELECT subquery, which may include more set operations
154154
/// in its body and an optional ORDER BY / LIMIT.
155-
Query(#[cfg_attr(feature = "visitor", visit(with = "visit_query"))] Box<Query>),
155+
Query(Box<Query>),
156156
/// UNION/EXCEPT/INTERSECT of two queries
157157
/// A set operation combining two query expressions.
158158
SetOperation {
@@ -442,6 +442,7 @@ impl SelectModifiers {
442442
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
443443
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
444444
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
445+
#[cfg_attr(feature = "visitor", visit(with = "visit_select"))]
445446
pub struct Select {
446447
/// Token for the `SELECT` keyword
447448
pub select_token: AttachedToken,

0 commit comments

Comments
 (0)