Skip to content

Commit

Permalink
disable migration mode
Browse files Browse the repository at this point in the history
  • Loading branch information
KushaalShroff committed Nov 26, 2024
1 parent 359fa3a commit 10f9d4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/babelfishpg_tsql/src/guc.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#define PLTSQL_SESSION_ISOLATION_LEVEL "default_transaction_isolation"
#define PLTSQL_TRANSACTION_ISOLATION_LEVEL "transaction_isolation"
#define PLTSQL_MIGRATION_MODE "babelfishpg_tsql.migration_mode"
#define PLTSQL_DEFAULT_LANGUAGE "us_english"

static int migration_mode = SINGLE_DB;
Expand Down Expand Up @@ -1509,6 +1510,7 @@ pltsql_validate_set_config_function(char *name, char *value)
{
if (strncmp(name, PLTSQL_SESSION_ISOLATION_LEVEL, strlen(PLTSQL_SESSION_ISOLATION_LEVEL)) == 0 ||
strncmp(name, PLTSQL_TRANSACTION_ISOLATION_LEVEL, strlen(PLTSQL_TRANSACTION_ISOLATION_LEVEL)) == 0 ||
strncmp(name, PLTSQL_MIGRATION_MODE, strlen(PLTSQL_MIGRATION_MODE)) == 0 ||
strncmp(name, "role", strlen("role")) == 0)
{
ereport(ERROR,
Expand Down

0 comments on commit 10f9d4d

Please sign in to comment.