Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/BABEL_3_X_DEV' into gix-migrat…
Browse files Browse the repository at this point in the history
…ion-mode-tests-3x
  • Loading branch information
Shameem Ahmed committed Dec 26, 2024
2 parents 20d8fd9 + 89f1daf commit 2bab939
Show file tree
Hide file tree
Showing 3 changed files with 1,621 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/babelfishpg_tsql/src/tsqlIface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,7 @@ class tsqlBuilder : public tsqlCommonMutator
graft(makeSQL(ctx), peekContainer());
}

is_cross_db = false;
// prepare rewriting
clear_rewritten_query_fragment();
PLtsql_stmt_execsql *stmt = (PLtsql_stmt_execsql *) getPLtsql_fragment(ctx);
Expand Down Expand Up @@ -1774,7 +1775,10 @@ class tsqlBuilder : public tsqlCommonMutator

// record whether stmt is cross-db
if (is_cross_db)
{
stmt->is_cross_db = true;
is_cross_db = false;
}
// record that the stmt is dml
stmt->is_dml = true;
// record if a function call
Expand Down
Loading

0 comments on commit 2bab939

Please sign in to comment.