Skip to content

Commit 12f8543

Browse files
committed
update
1 parent a245336 commit 12f8543

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/ast/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ pub enum TableFactor {
13361336
Pivot {
13371337
table: Box<TableFactor>,
13381338
aggregate_functions: Vec<ExprWithAlias>, // Function expression
1339-
value_column: Vec<Expr>, // Expr is a identifier or a compound identifier
1339+
value_column: Vec<Expr>,
13401340
value_source: PivotValueSource,
13411341
default_on_null: Option<Expr>,
13421342
alias: Option<TableAlias>,

tests/sqlparser_common.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10925,15 +10925,6 @@ fn parse_pivot_table() {
1092510925
verified_stmt(sql_without_table_alias).to_string(),
1092610926
sql_without_table_alias
1092710927
);
10928-
10929-
let sql_with_multiple_value_column = concat!(
10930-
"SELECT * FROM person ",
10931-
"PIVOT(SUM(age) AS a, AVG(class) AS c FOR (name, age) IN (('John', 30) AS c1, ('Mike', 40) AS c2))"
10932-
);
10933-
assert_eq!(
10934-
verified_stmt(sql_with_multiple_value_column).to_string(),
10935-
sql_with_multiple_value_column
10936-
);
1093710928
}
1093810929

1093910930
#[test]

0 commit comments

Comments
 (0)