diff options
Diffstat (limited to 'src/bin/psql/settings.h')
-rw-r--r-- | src/bin/psql/settings.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/psql/settings.h b/src/bin/psql/settings.h index ef24a4ef985..bad70e4c8a8 100644 --- a/src/bin/psql/settings.h +++ b/src/bin/psql/settings.h @@ -27,6 +27,11 @@ #define DEFAULT_PROMPT2 "%/%R%# " #define DEFAULT_PROMPT3 ">> " +/* + * Note: these enums should generally be chosen so that zero corresponds + * to the default behavior. + */ + typedef enum { PSQL_ECHO_NONE, @@ -51,6 +56,14 @@ typedef enum typedef enum { + PSQL_COMP_CASE_PRESERVE_UPPER, + PSQL_COMP_CASE_PRESERVE_LOWER, + PSQL_COMP_CASE_UPPER, + PSQL_COMP_CASE_LOWER +} PSQL_COMP_CASE; + +typedef enum +{ hctl_none = 0, hctl_ignorespace = 1, hctl_ignoredups = 2, @@ -110,6 +123,7 @@ typedef struct _psqlSettings PSQL_ECHO echo; PSQL_ECHO_HIDDEN echo_hidden; PSQL_ERROR_ROLLBACK on_error_rollback; + PSQL_COMP_CASE comp_case; HistControl histcontrol; const char *prompt1; const char *prompt2; |