Skip to content

Commit

Permalink
Rewrite alter table in ANTLR
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirmit Shah committed Mar 5, 2025
1 parent a9d41c7 commit 38436fd
Showing 1 changed file with 4 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 @@ -1811,6 +1811,10 @@ class tsqlBuilder : public tsqlCommonMutator

rewritten_query_fragment.emplace(std::make_pair(ctx->start->getStartIndex(), std::make_pair(::getFullText(ctx), str)));
}
else if(ctx->TRIGGER() && ctx->ALL())
{
rewritten_query_fragment.emplace(std::make_pair(ctx->ALL()->getSymbol()->getStartIndex(),std::make_pair(::getFullText(ctx->ALL()), "USER")));
}
}

void exitEnable_trigger(TSqlParser::Enable_triggerContext *ctx) override
Expand Down

0 comments on commit 38436fd

Please sign in to comment.