@@ -2251,6 +2251,7 @@ fn parse_create_index() {
2251
2251
if_not_exists,
2252
2252
nulls_distinct : None ,
2253
2253
include,
2254
+ with,
2254
2255
predicate : None ,
2255
2256
} ) => {
2256
2257
assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2261,6 +2262,7 @@ fn parse_create_index() {
2261
2262
assert ! ( if_not_exists) ;
2262
2263
assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
2263
2264
assert ! ( include. is_empty( ) ) ;
2265
+ assert ! ( with. is_empty( ) ) ;
2264
2266
}
2265
2267
_ => unreachable ! ( ) ,
2266
2268
}
@@ -2280,6 +2282,7 @@ fn parse_create_anonymous_index() {
2280
2282
if_not_exists,
2281
2283
include,
2282
2284
nulls_distinct : None ,
2285
+ with,
2283
2286
predicate : None ,
2284
2287
} ) => {
2285
2288
assert_eq ! ( None , name) ;
@@ -2290,6 +2293,7 @@ fn parse_create_anonymous_index() {
2290
2293
assert ! ( !if_not_exists) ;
2291
2294
assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
2292
2295
assert ! ( include. is_empty( ) ) ;
2296
+ assert ! ( with. is_empty( ) ) ;
2293
2297
}
2294
2298
_ => unreachable ! ( ) ,
2295
2299
}
@@ -2309,6 +2313,7 @@ fn parse_create_index_concurrently() {
2309
2313
if_not_exists,
2310
2314
include,
2311
2315
nulls_distinct : None ,
2316
+ with,
2312
2317
predicate : None ,
2313
2318
} ) => {
2314
2319
assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2319,6 +2324,7 @@ fn parse_create_index_concurrently() {
2319
2324
assert ! ( if_not_exists) ;
2320
2325
assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
2321
2326
assert ! ( include. is_empty( ) ) ;
2327
+ assert ! ( with. is_empty( ) ) ;
2322
2328
}
2323
2329
_ => unreachable ! ( ) ,
2324
2330
}
@@ -2338,6 +2344,7 @@ fn parse_create_index_with_predicate() {
2338
2344
if_not_exists,
2339
2345
include,
2340
2346
nulls_distinct : None ,
2347
+ with,
2341
2348
predicate : Some ( _) ,
2342
2349
} ) => {
2343
2350
assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2348,6 +2355,7 @@ fn parse_create_index_with_predicate() {
2348
2355
assert ! ( if_not_exists) ;
2349
2356
assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
2350
2357
assert ! ( include. is_empty( ) ) ;
2358
+ assert ! ( with. is_empty( ) ) ;
2351
2359
}
2352
2360
_ => unreachable ! ( ) ,
2353
2361
}
@@ -2367,6 +2375,7 @@ fn parse_create_index_with_include() {
2367
2375
if_not_exists,
2368
2376
include,
2369
2377
nulls_distinct : None ,
2378
+ with,
2370
2379
predicate : None ,
2371
2380
} ) => {
2372
2381
assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2377,6 +2386,7 @@ fn parse_create_index_with_include() {
2377
2386
assert ! ( if_not_exists) ;
2378
2387
assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
2379
2388
assert_eq_vec ( & [ "col3" ] , & include) ;
2389
+ assert ! ( with. is_empty( ) ) ;
2380
2390
}
2381
2391
_ => unreachable ! ( ) ,
2382
2392
}
@@ -2396,6 +2406,7 @@ fn parse_create_index_with_nulls_distinct() {
2396
2406
if_not_exists,
2397
2407
include,
2398
2408
nulls_distinct : Some ( nulls_distinct) ,
2409
+ with,
2399
2410
predicate : None ,
2400
2411
} ) => {
2401
2412
assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2407,6 +2418,7 @@ fn parse_create_index_with_nulls_distinct() {
2407
2418
assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
2408
2419
assert ! ( include. is_empty( ) ) ;
2409
2420
assert ! ( !nulls_distinct) ;
2421
+ assert ! ( with. is_empty( ) ) ;
2410
2422
}
2411
2423
_ => unreachable ! ( ) ,
2412
2424
}
@@ -2423,6 +2435,7 @@ fn parse_create_index_with_nulls_distinct() {
2423
2435
if_not_exists,
2424
2436
include,
2425
2437
nulls_distinct : Some ( nulls_distinct) ,
2438
+ with,
2426
2439
predicate : None ,
2427
2440
} ) => {
2428
2441
assert_eq_vec ( & [ "my_index" ] , & name) ;
@@ -2434,6 +2447,7 @@ fn parse_create_index_with_nulls_distinct() {
2434
2447
assert_eq_vec ( & [ "col1" , "col2" ] , & columns) ;
2435
2448
assert ! ( include. is_empty( ) ) ;
2436
2449
assert ! ( nulls_distinct) ;
2450
+ assert ! ( with. is_empty( ) ) ;
2437
2451
}
2438
2452
_ => unreachable ! ( ) ,
2439
2453
}
0 commit comments