PG-1907 Use macro to define the number of enum values

This commet address refactoring made in PostgreSQL codebase in commit
10b7218.
pull/571/head
Artem Gavrilov 2025-09-26 17:39:17 +02:00 committed by Artem Gavrilov
parent bd0546b7c9
commit 8f7868f73e
1 changed files with 2 additions and 2 deletions

View File

@ -152,10 +152,10 @@ typedef enum pgsmStoreKind
PGSM_EXEC, PGSM_EXEC,
PGSM_STORE, PGSM_STORE,
PGSM_ERROR, PGSM_ERROR,
PGSM_NUMKIND /* Must be last value of this enum */
} pgsmStoreKind; } pgsmStoreKind;
#define PGSM_NUMKIND (PGSM_ERROR + 1)
/* the assumption of query max nested level */ /* the assumption of query max nested level */
#define DEFAULT_MAX_NESTED_LEVEL 10 #define DEFAULT_MAX_NESTED_LEVEL 10