Skip to content

Commit 7a31b62

Browse files
committed
Formatting fix
1 parent 96442ca commit 7a31b62

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/ast/ddl.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,11 +1000,7 @@ impl fmt::Display for AlterTableOperation {
10001000
Ok(())
10011001
}
10021002
AlterTableOperation::AlterSortKey { columns } => {
1003-
write!(
1004-
f,
1005-
"ALTER SORTKEY({})",
1006-
display_comma_separated(columns)
1007-
)?;
1003+
write!(f, "ALTER SORTKEY({})", display_comma_separated(columns))?;
10081004
Ok(())
10091005
}
10101006
AlterTableOperation::SuspendRecluster => {

tests/sqlparser_redshift.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,8 @@ fn test_copy_credentials() {
477477

478478
#[test]
479479
fn test_create_table_sortkey() {
480-
redshift()
481-
.verified_stmt("CREATE TABLE t1 (c1 INT, c2 INT, c3 TIMESTAMP) SORTKEY(c3)");
482-
redshift()
483-
.verified_stmt("CREATE TABLE t1 (c1 INT, c2 INT) SORTKEY(c1, c2)");
480+
redshift().verified_stmt("CREATE TABLE t1 (c1 INT, c2 INT, c3 TIMESTAMP) SORTKEY(c3)");
481+
redshift().verified_stmt("CREATE TABLE t1 (c1 INT, c2 INT) SORTKEY(c1, c2)");
484482
}
485483

486484
#[test]

0 commit comments

Comments
 (0)