@@ -2251,6 +2251,7 @@ fn parse_create_index() {
22512251 if_not_exists,
22522252 nulls_distinct : None ,
22532253 include,
2254+ with,
22542255 predicate : None ,
22552256 } ) => {
22562257 assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2261,6 +2262,7 @@ fn parse_create_index() {
22612262 assert ! ( if_not_exists) ;
22622263 assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
22632264 assert ! ( include. is_empty( ) ) ;
2265+ assert ! ( with. is_empty( ) ) ;
22642266 }
22652267 _ => unreachable ! ( ) ,
22662268 }
@@ -2280,6 +2282,7 @@ fn parse_create_anonymous_index() {
22802282 if_not_exists,
22812283 include,
22822284 nulls_distinct : None ,
2285+ with,
22832286 predicate : None ,
22842287 } ) => {
22852288 assert_eq ! ( None , name) ;
@@ -2290,6 +2293,7 @@ fn parse_create_anonymous_index() {
22902293 assert ! ( !if_not_exists) ;
22912294 assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
22922295 assert ! ( include. is_empty( ) ) ;
2296+ assert ! ( with. is_empty( ) ) ;
22932297 }
22942298 _ => unreachable ! ( ) ,
22952299 }
@@ -2309,6 +2313,7 @@ fn parse_create_index_concurrently() {
23092313 if_not_exists,
23102314 include,
23112315 nulls_distinct : None ,
2316+ with,
23122317 predicate : None ,
23132318 } ) => {
23142319 assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2319,6 +2324,7 @@ fn parse_create_index_concurrently() {
23192324 assert ! ( if_not_exists) ;
23202325 assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
23212326 assert ! ( include. is_empty( ) ) ;
2327+ assert ! ( with. is_empty( ) ) ;
23222328 }
23232329 _ => unreachable ! ( ) ,
23242330 }
@@ -2338,6 +2344,7 @@ fn parse_create_index_with_predicate() {
23382344 if_not_exists,
23392345 include,
23402346 nulls_distinct : None ,
2347+ with,
23412348 predicate : Some ( _) ,
23422349 } ) => {
23432350 assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2348,6 +2355,7 @@ fn parse_create_index_with_predicate() {
23482355 assert ! ( if_not_exists) ;
23492356 assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
23502357 assert ! ( include. is_empty( ) ) ;
2358+ assert ! ( with. is_empty( ) ) ;
23512359 }
23522360 _ => unreachable ! ( ) ,
23532361 }
@@ -2367,6 +2375,7 @@ fn parse_create_index_with_include() {
23672375 if_not_exists,
23682376 include,
23692377 nulls_distinct : None ,
2378+ with,
23702379 predicate : None ,
23712380 } ) => {
23722381 assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2377,6 +2386,7 @@ fn parse_create_index_with_include() {
23772386 assert ! ( if_not_exists) ;
23782387 assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
23792388 assert_eq_vec ( & [ "col3" ] , & include) ;
2389+ assert ! ( with. is_empty( ) ) ;
23802390 }
23812391 _ => unreachable ! ( ) ,
23822392 }
@@ -2396,6 +2406,7 @@ fn parse_create_index_with_nulls_distinct() {
23962406 if_not_exists,
23972407 include,
23982408 nulls_distinct : Some ( nulls_distinct) ,
2409+ with,
23992410 predicate : None ,
24002411 } ) => {
24012412 assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2407,6 +2418,7 @@ fn parse_create_index_with_nulls_distinct() {
24072418 assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
24082419 assert ! ( include. is_empty( ) ) ;
24092420 assert ! ( !nulls_distinct) ;
2421+ assert ! ( with. is_empty( ) ) ;
24102422 }
24112423 _ => unreachable ! ( ) ,
24122424 }
@@ -2423,6 +2435,7 @@ fn parse_create_index_with_nulls_distinct() {
24232435 if_not_exists,
24242436 include,
24252437 nulls_distinct : Some ( nulls_distinct) ,
2438+ with,
24262439 predicate : None ,
24272440 } ) => {
24282441 assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2434,6 +2447,7 @@ fn parse_create_index_with_nulls_distinct() {
24342447 assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
24352448 assert ! ( include. is_empty( ) ) ;
24362449 assert ! ( nulls_distinct) ;
2450+ assert ! ( with. is_empty( ) ) ;
24372451 }
24382452 _ => unreachable ! ( ) ,
24392453 }
0 commit comments