Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tanscorpio7 committed Aug 24, 2023
1 parent 6fd9432 commit 0d9107c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions contrib/babelfishpg_tsql/src/backend_parser/gram-tsql-rule.y
Original file line number Diff line number Diff line change
Expand Up @@ -4244,7 +4244,8 @@ tsql_IsolationLevelStr:
}
| REPEATABLE READ
{
if(pltsql_enable_repeatable_read_isolation_level){
if(pltsql_enable_repeatable_read_isolation_level)
{
TSQLInstrumentation(INSTR_TSQL_ISOLATION_LEVEL_REPEATABLE_READ);
$$ = "repeatable read";
}
Expand All @@ -4264,7 +4265,8 @@ tsql_IsolationLevelStr:
}
| SERIALIZABLE
{
if(pltsql_enable_serializable_isolation_level){
if(pltsql_enable_serializable_isolation_level)
{
TSQLInstrumentation(INSTR_TSQL_ISOLATION_LEVEL_SERIALIZABLE);
$$ = "serializable";
}
Expand Down
4 changes: 2 additions & 2 deletions contrib/babelfishpg_tsql/src/guc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ define_custom_variables(void)
&pltsql_enable_repeatable_read_isolation_level,
false,
PGC_USERSET,
GUC_NOT_IN_SAMPLE ,
GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_AUTO_FILE,
NULL, NULL, NULL);

DefineCustomBoolVariable("babelfishpg_tsql.enable_serializable_isolation_level",
Expand All @@ -1191,7 +1191,7 @@ define_custom_variables(void)
&pltsql_enable_serializable_isolation_level,
false,
PGC_USERSET,
GUC_NOT_IN_SAMPLE ,
GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_AUTO_FILE,
NULL, NULL, NULL);
}

Expand Down

0 comments on commit 0d9107c

Please sign in to comment.