@@ -2501,6 +2501,7 @@ fn parse_create_index() {
25012501 with,
25022502 predicate : None ,
25032503 index_options,
2504+ alter_options,
25042505 } ) => {
25052506 assert_eq_vec ( & [ "my_index" ] , & name) ;
25062507 assert_eq_vec ( & [ "my_table" ] , & table_name) ;
@@ -2512,6 +2513,7 @@ fn parse_create_index() {
25122513 assert ! ( include. is_empty( ) ) ;
25132514 assert ! ( with. is_empty( ) ) ;
25142515 assert ! ( index_options. is_empty( ) ) ;
2516+ assert ! ( alter_options. is_empty( ) ) ;
25152517 }
25162518 _ => unreachable ! ( ) ,
25172519 }
@@ -2534,6 +2536,7 @@ fn parse_create_anonymous_index() {
25342536 with,
25352537 predicate : None ,
25362538 index_options,
2539+ alter_options,
25372540 } ) => {
25382541 assert_eq ! ( None , name) ;
25392542 assert_eq_vec ( & [ "my_table" ] , & table_name) ;
@@ -2545,6 +2548,7 @@ fn parse_create_anonymous_index() {
25452548 assert ! ( include. is_empty( ) ) ;
25462549 assert ! ( with. is_empty( ) ) ;
25472550 assert ! ( index_options. is_empty( ) ) ;
2551+ assert ! ( alter_options. is_empty( ) ) ;
25482552 }
25492553 _ => unreachable ! ( ) ,
25502554 }
@@ -2644,6 +2648,7 @@ fn parse_create_indices_with_operator_classes() {
26442648 with,
26452649 predicate : None ,
26462650 index_options,
2651+ alter_options,
26472652 } ) => {
26482653 assert_eq_vec ( & [ "the_index_name" ] , & name) ;
26492654 assert_eq_vec ( & [ "users" ] , & table_name) ;
@@ -2652,6 +2657,7 @@ fn parse_create_indices_with_operator_classes() {
26522657 assert ! ( include. is_empty( ) ) ;
26532658 assert ! ( with. is_empty( ) ) ;
26542659 assert ! ( index_options. is_empty( ) ) ;
2660+ assert ! ( alter_options. is_empty( ) ) ;
26552661 }
26562662 _ => unreachable ! ( ) ,
26572663 }
@@ -2670,6 +2676,7 @@ fn parse_create_indices_with_operator_classes() {
26702676 with,
26712677 predicate : None ,
26722678 index_options,
2679+ alter_options,
26732680 } ) => {
26742681 assert_eq_vec ( & [ "the_index_name" ] , & name) ;
26752682 assert_eq_vec ( & [ "users" ] , & table_name) ;
@@ -2696,6 +2703,7 @@ fn parse_create_indices_with_operator_classes() {
26962703 assert ! ( include. is_empty( ) ) ;
26972704 assert ! ( with. is_empty( ) ) ;
26982705 assert ! ( index_options. is_empty( ) ) ;
2706+ assert ! ( alter_options. is_empty( ) ) ;
26992707 }
27002708 _ => unreachable ! ( ) ,
27012709 }
@@ -2721,6 +2729,7 @@ fn parse_create_bloom() {
27212729 with,
27222730 predicate : None ,
27232731 index_options,
2732+ alter_options,
27242733 } ) => {
27252734 assert_eq_vec ( & [ "bloomidx" ] , & name) ;
27262735 assert_eq_vec ( & [ "tbloom" ] , & table_name) ;
@@ -2753,6 +2762,7 @@ fn parse_create_bloom() {
27532762 with
27542763 ) ;
27552764 assert ! ( index_options. is_empty( ) ) ;
2765+ assert ! ( alter_options. is_empty( ) ) ;
27562766 }
27572767 _ => unreachable ! ( ) ,
27582768 }
@@ -2775,6 +2785,7 @@ fn parse_create_brin() {
27752785 with,
27762786 predicate : None ,
27772787 index_options,
2788+ alter_options,
27782789 } ) => {
27792790 assert_eq_vec ( & [ "brin_sensor_data_recorded_at" ] , & name) ;
27802791 assert_eq_vec ( & [ "sensor_data" ] , & table_name) ;
@@ -2783,6 +2794,7 @@ fn parse_create_brin() {
27832794 assert ! ( include. is_empty( ) ) ;
27842795 assert ! ( with. is_empty( ) ) ;
27852796 assert ! ( index_options. is_empty( ) ) ;
2797+ assert ! ( alter_options. is_empty( ) ) ;
27862798 }
27872799 _ => unreachable ! ( ) ,
27882800 }
@@ -2840,6 +2852,7 @@ fn parse_create_index_concurrently() {
28402852 with,
28412853 predicate : None ,
28422854 index_options,
2855+ alter_options,
28432856 } ) => {
28442857 assert_eq_vec ( & [ "my_index" ] , & name) ;
28452858 assert_eq_vec ( & [ "my_table" ] , & table_name) ;
@@ -2851,6 +2864,7 @@ fn parse_create_index_concurrently() {
28512864 assert ! ( include. is_empty( ) ) ;
28522865 assert ! ( with. is_empty( ) ) ;
28532866 assert ! ( index_options. is_empty( ) ) ;
2867+ assert ! ( alter_options. is_empty( ) ) ;
28542868 }
28552869 _ => unreachable ! ( ) ,
28562870 }
@@ -2873,6 +2887,7 @@ fn parse_create_index_with_predicate() {
28732887 with,
28742888 predicate : Some ( _) ,
28752889 index_options,
2890+ alter_options,
28762891 } ) => {
28772892 assert_eq_vec ( & [ "my_index" ] , & name) ;
28782893 assert_eq_vec ( & [ "my_table" ] , & table_name) ;
@@ -2884,6 +2899,7 @@ fn parse_create_index_with_predicate() {
28842899 assert ! ( include. is_empty( ) ) ;
28852900 assert ! ( with. is_empty( ) ) ;
28862901 assert ! ( index_options. is_empty( ) ) ;
2902+ assert ! ( alter_options. is_empty( ) ) ;
28872903 }
28882904 _ => unreachable ! ( ) ,
28892905 }
@@ -2906,6 +2922,7 @@ fn parse_create_index_with_include() {
29062922 with,
29072923 predicate : None ,
29082924 index_options,
2925+ alter_options,
29092926 } ) => {
29102927 assert_eq_vec ( & [ "my_index" ] , & name) ;
29112928 assert_eq_vec ( & [ "my_table" ] , & table_name) ;
@@ -2917,6 +2934,7 @@ fn parse_create_index_with_include() {
29172934 assert_eq_vec ( & [ "col3" , "col4" ] , & include) ;
29182935 assert ! ( with. is_empty( ) ) ;
29192936 assert ! ( index_options. is_empty( ) ) ;
2937+ assert ! ( alter_options. is_empty( ) ) ;
29202938 }
29212939 _ => unreachable ! ( ) ,
29222940 }
@@ -2939,6 +2957,7 @@ fn parse_create_index_with_nulls_distinct() {
29392957 with,
29402958 predicate : None ,
29412959 index_options,
2960+ alter_options,
29422961 } ) => {
29432962 assert_eq_vec ( & [ "my_index" ] , & name) ;
29442963 assert_eq_vec ( & [ "my_table" ] , & table_name) ;
@@ -2951,6 +2970,7 @@ fn parse_create_index_with_nulls_distinct() {
29512970 assert ! ( !nulls_distinct) ;
29522971 assert ! ( with. is_empty( ) ) ;
29532972 assert ! ( index_options. is_empty( ) ) ;
2973+ assert ! ( alter_options. is_empty( ) ) ;
29542974 }
29552975 _ => unreachable ! ( ) ,
29562976 }
@@ -2970,6 +2990,7 @@ fn parse_create_index_with_nulls_distinct() {
29702990 with,
29712991 predicate : None ,
29722992 index_options,
2993+ alter_options,
29732994 } ) => {
29742995 assert_eq_vec ( & [ "my_index" ] , & name) ;
29752996 assert_eq_vec ( & [ "my_table" ] , & table_name) ;
@@ -2982,6 +3003,7 @@ fn parse_create_index_with_nulls_distinct() {
29823003 assert ! ( nulls_distinct) ;
29833004 assert ! ( with. is_empty( ) ) ;
29843005 assert ! ( index_options. is_empty( ) ) ;
3006+ assert ! ( alter_options. is_empty( ) ) ;
29853007 }
29863008 _ => unreachable ! ( ) ,
29873009 }
0 commit comments