• Vadim Zeitlin's avatar
    Provide context of the error in soci_error when possible. · 8bb66107
    Vadim Zeitlin authored
    Add soci_error::add_context() and use it in statement class to record the
    information about the query which resulted in the exception and, if
    applicable, this query parameters.
    
    This results in much better end user experience as the error messages now
    contain information allowing to diagnose which query exactly has failed
    instead of just unhelpfully saying that an error occurred.
    8bb66107