• Alex Suraci's avatar
    postgres: refactor error handling to fix retrying · 587081a6
    Alex Suraci authored
    prior to this change, many of the functions in the ExecTx callback would
    wrap the error before returning it. this made it impossible to check
    for the error code.
    
    instead, the error wrapping has been moved to be external to the
    `ExecTx` callback, so that the error code can be checked and
    serialization failures can be retried.
    587081a6
crud.go 22.3 KB