Skip to content

Commit

Permalink
changes reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
Parikshit Sarode committed Oct 8, 2023
1 parent afad3ce commit 3f49c10
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions contrib/babelfishpg_tsql/src/pl_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -4655,7 +4655,7 @@ exec_stmt_execsql(PLtsql_execstate *estate,
PLtsql_expr *expr = stmt->sqlstmt;
Portal portal = NULL;
ListCell *lc;
CachedPlan *cp = NULL;
CachedPlan *cp;
bool is_returning = false;
bool is_select = true;

Expand Down Expand Up @@ -4751,27 +4751,7 @@ exec_stmt_execsql(PLtsql_execstate *estate,
/*
* Check whether the statement is an INSERT/DELETE with RETURNING
*/
// if (strcasestr(stmt->sqlstmt->query, " OUTPUT") || strcasestr(stmt->sqlstmt->query, "UPDATE ") || strcasestr(stmt->sqlstmt->query, "TRIGGER") ||
// enable_txn_in_triggers)
// {
cp = SPI_plan_get_cached_plan(expr->plan);
// }

// if(strcasestr(stmt->sqlstmt->query, "INSERT "))
// {
// cmd = CMD_INSERT;
// }
// else if(strcasestr(stmt->sqlstmt->query, "DELETE "))
// {
// cmd = CMD_DELETE;
// }
// else if(strcasestr(stmt->sqlstmt->query, "SELECT "))
// {
// is_select = false;
// }



cp = SPI_plan_get_cached_plan(expr->plan);
if (cp)
{
int i;
Expand Down

0 comments on commit 3f49c10

Please sign in to comment.