File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -750,7 +750,7 @@ impl fmt::Display for Statement {
750750 if_not_exists,
751751 } => write ! (
752752 f,
753- "CREATE {unique}INDEX {if_not_exists}{name} ON {table_name}({columns}); " ,
753+ "CREATE {unique}INDEX {if_not_exists}{name} ON {table_name}({columns})" ,
754754 unique = if * unique { "UNIQUE " } else { "" } ,
755755 if_not_exists = if * if_not_exists { "IF NOT EXISTS " } else { "" } ,
756756 name = name,
Original file line number Diff line number Diff line change @@ -3152,7 +3152,7 @@ fn ensure_multiple_dialects_are_tested() {
31523152
31533153#[ test]
31543154fn parse_create_index ( ) {
3155- let sql = "CREATE UNIQUE INDEX IF NOT EXISTS idx_name ON test(name,age); " ;
3155+ let sql = "CREATE UNIQUE INDEX IF NOT EXISTS idx_name ON test(name,age)" ;
31563156 let ident_vec = vec ! [ Ident :: new( "name" ) , Ident :: new( "age" ) ] ;
31573157 match verified_stmt ( sql) {
31583158 Statement :: CreateIndex {
You can’t perform that action at this time.
0 commit comments