Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crud: support operation_data field in errors #331

Merged
merged 1 commit into from
Aug 23, 2023

Commits on Aug 23, 2023

  1. crud: support operation_data field in errors

    This patch adds `operation_data` decoding for the `crud.Error`.
    
    The `operation_data` type is determined as `rowType` in `crud.Result`.
    
    Also, according to [1], an error can contain one of the following:
    - an error
    - an array of errors
    - nil
    
    So the error decoding logic has been modified to consider each case,
    in order to avoid comparing an error to nil.
    
    1. https://github.com/tarantool/crud/tree/master#api
    
    Closes #330
    askalt committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    7ce2007 View commit details
    Browse the repository at this point in the history