File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3229,39 +3229,7 @@ fn parse_create_index_concurrently() {
32293229
32303230#[ test]
32313231fn parse_create_index_async ( ) {
3232- let sql = "CREATE INDEX ASYNC my_index ON my_table(col1)" ;
3233- match pg ( ) . verified_stmt ( sql) {
3234- Statement :: CreateIndex ( CreateIndex {
3235- name : Some ( ObjectName ( name) ) ,
3236- table_name : ObjectName ( table_name) ,
3237- using,
3238- columns,
3239- unique,
3240- concurrently,
3241- r#async,
3242- if_not_exists,
3243- include,
3244- nulls_distinct : None ,
3245- with,
3246- predicate : None ,
3247- index_options,
3248- alter_options,
3249- } ) => {
3250- assert_eq_vec ( & [ "my_index" ] , & name) ;
3251- assert_eq_vec ( & [ "my_table" ] , & table_name) ;
3252- assert_eq ! ( None , using) ;
3253- assert ! ( !unique) ;
3254- assert ! ( !concurrently) ;
3255- assert ! ( r#async) ;
3256- assert ! ( !if_not_exists) ;
3257- assert_eq_vec ( & [ "col1" ] , & columns) ;
3258- assert ! ( include. is_empty( ) ) ;
3259- assert ! ( with. is_empty( ) ) ;
3260- assert ! ( index_options. is_empty( ) ) ;
3261- assert ! ( alter_options. is_empty( ) ) ;
3262- }
3263- _ => unreachable ! ( ) ,
3264- }
3232+ pg ( ) . verified_stmt ( "CREATE INDEX ASYNC my_index ON my_table(col1)" ) ;
32653233
32663234 let sql = "CREATE UNIQUE INDEX ASYNC my_index ON my_table(col1)" ;
32673235 match pg ( ) . verified_stmt ( sql) {
You can’t perform that action at this time.
0 commit comments