@@ -2827,9 +2827,7 @@ fn parse_alter_table_drop_column() {
2827
2827
#[ test]
2828
2828
fn parse_alter_table_alter_column ( ) {
2829
2829
let alter_stmt = "ALTER TABLE tab" ;
2830
- match verified_stmt ( & format ! (
2831
- "{alter_stmt} ALTER COLUMN is_active SET NOT NULL"
2832
- ) ) {
2830
+ match verified_stmt ( & format ! ( "{alter_stmt} ALTER COLUMN is_active SET NOT NULL" ) ) {
2833
2831
Statement :: AlterTable {
2834
2832
name,
2835
2833
operation : AlterTableOperation :: AlterColumn { column_name, op } ,
@@ -2865,9 +2863,7 @@ fn parse_alter_table_alter_column() {
2865
2863
_ => unreachable ! ( ) ,
2866
2864
}
2867
2865
2868
- match verified_stmt ( & format ! (
2869
- "{alter_stmt} ALTER COLUMN is_active DROP DEFAULT"
2870
- ) ) {
2866
+ match verified_stmt ( & format ! ( "{alter_stmt} ALTER COLUMN is_active DROP DEFAULT" ) ) {
2871
2867
Statement :: AlterTable {
2872
2868
name,
2873
2869
operation : AlterTableOperation :: AlterColumn { column_name, op } ,
@@ -2912,9 +2908,7 @@ fn parse_alter_table_alter_column_type() {
2912
2908
2913
2909
let res = Parser :: parse_sql (
2914
2910
& GenericDialect { } ,
2915
- & format ! (
2916
- "{alter_stmt} ALTER COLUMN is_active SET DATA TYPE TEXT USING 'text'"
2917
- ) ,
2911
+ & format ! ( "{alter_stmt} ALTER COLUMN is_active SET DATA TYPE TEXT USING 'text'" ) ,
2918
2912
) ;
2919
2913
assert_eq ! (
2920
2914
ParserError :: ParserError ( "Expected end of statement, found: USING" . to_string( ) ) ,
@@ -4266,9 +4260,7 @@ fn parse_cte_renamed_columns() {
4266
4260
#[ test]
4267
4261
fn parse_recursive_cte ( ) {
4268
4262
let cte_query = "SELECT 1 UNION ALL SELECT val + 1 FROM nums WHERE val < 10" . to_owned ( ) ;
4269
- let sql = & format ! (
4270
- "WITH RECURSIVE nums (val) AS ({cte_query}) SELECT * FROM nums"
4271
- ) ;
4263
+ let sql = & format ! ( "WITH RECURSIVE nums (val) AS ({cte_query}) SELECT * FROM nums" ) ;
4272
4264
4273
4265
let cte_query = verified_query ( & cte_query) ;
4274
4266
let query = verified_query ( sql) ;
@@ -6280,9 +6272,7 @@ fn parse_cache_table() {
6280
6272
let query = all_dialects ( ) . verified_query ( sql) ;
6281
6273
6282
6274
assert_eq ! (
6283
- verified_stmt(
6284
- format!( "CACHE TABLE '{cache_table_name}'" ) . as_str( )
6285
- ) ,
6275
+ verified_stmt( format!( "CACHE TABLE '{cache_table_name}'" ) . as_str( ) ) ,
6286
6276
Statement :: Cache {
6287
6277
table_flag: None ,
6288
6278
table_name: ObjectName ( vec![ Ident :: with_quote( '\'' , cache_table_name) ] ) ,
@@ -6293,12 +6283,7 @@ fn parse_cache_table() {
6293
6283
) ;
6294
6284
6295
6285
assert_eq ! (
6296
- verified_stmt(
6297
- format!(
6298
- "CACHE {table_flag} TABLE '{cache_table_name}'"
6299
- )
6300
- . as_str( )
6301
- ) ,
6286
+ verified_stmt( format!( "CACHE {table_flag} TABLE '{cache_table_name}'" ) . as_str( ) ) ,
6302
6287
Statement :: Cache {
6303
6288
table_flag: Some ( ObjectName ( vec![ Ident :: new( table_flag) ] ) ) ,
6304
6289
table_name: ObjectName ( vec![ Ident :: with_quote( '\'' , cache_table_name) ] ) ,
@@ -6384,12 +6369,7 @@ fn parse_cache_table() {
6384
6369
) ;
6385
6370
6386
6371
assert_eq ! (
6387
- verified_stmt(
6388
- format!(
6389
- "CACHE {table_flag} TABLE '{cache_table_name}' {sql}"
6390
- )
6391
- . as_str( )
6392
- ) ,
6372
+ verified_stmt( format!( "CACHE {table_flag} TABLE '{cache_table_name}' {sql}" ) . as_str( ) ) ,
6393
6373
Statement :: Cache {
6394
6374
table_flag: Some ( ObjectName ( vec![ Ident :: new( table_flag) ] ) ) ,
6395
6375
table_name: ObjectName ( vec![ Ident :: with_quote( '\'' , cache_table_name) ] ) ,
@@ -6400,12 +6380,7 @@ fn parse_cache_table() {
6400
6380
) ;
6401
6381
6402
6382
assert_eq ! (
6403
- verified_stmt(
6404
- format!(
6405
- "CACHE {table_flag} TABLE '{cache_table_name}' AS {sql}"
6406
- )
6407
- . as_str( )
6408
- ) ,
6383
+ verified_stmt( format!( "CACHE {table_flag} TABLE '{cache_table_name}' AS {sql}" ) . as_str( ) ) ,
6409
6384
Statement :: Cache {
6410
6385
table_flag: Some ( ObjectName ( vec![ Ident :: new( table_flag) ] ) ) ,
6411
6386
table_name: ObjectName ( vec![ Ident :: with_quote( '\'' , cache_table_name) ] ) ,
0 commit comments