Commit 4dde9063 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

sqlite: Errors: Use SQLITE_ERROR_SNAPSHOT only when available

Fix #139
parent 3048fff2
Pipeline #9431 passed with stage
in 32 minutes and 26 seconds
......@@ -685,8 +685,10 @@ static inline void mapToException( const char* reqStr, const char* errMsg, int e
throw errors::ErrorMissingColSeq( reqStr, errMsg, extRes );
case SQLITE_ERROR_RETRY:
throw errors::ErrorRetry( reqStr, errMsg, extRes );
#ifdef SQLITE_ERROR_SNAPSHOT
case SQLITE_ERROR_SNAPSHOT:
throw errors::ErrorSnapshot( reqStr, errMsg, extRes );
#endif
default:
throw errors::GenericError( reqStr, errMsg, extRes );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment