Skip to content

Commit

Permalink
reset bcpoffset just after the catch
Browse files Browse the repository at this point in the history
  • Loading branch information
KushaalShroff committed Aug 30, 2024
1 parent 112aff3 commit 385ef57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/babelfishpg_tds/src/backend/tds/tdsbulkload.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,8 @@ ProcessBCPRequest(TDSRequest request)
}
PG_END_TRY();
}
/* Reset the offset at the end of the request. */
TdsResetBcpOffset();

/* If we Started an internal savepoint then release it. */
if (internal_sp_started && before_subtxn_id == GetCurrentSubTransactionId())
Expand Down Expand Up @@ -1123,7 +1125,6 @@ ProcessBCPRequest(TDSRequest request)
pltsql_plugin_handler_ptr->stmt_needs_logging = false;
error_context_stack = plerrcontext;
}
bcpOffset = 0;
}

static int
Expand Down

0 comments on commit 385ef57

Please sign in to comment.