diff --git a/src/connector/sqlite/error.rs b/src/connector/sqlite/error.rs index f6f4367e9..40fc92dd6 100644 --- a/src/connector/sqlite/error.rs +++ b/src/connector/sqlite/error.rs @@ -5,6 +5,13 @@ use rusqlite::types::FromSqlError; impl From for Error { fn from(e: rusqlite::Error) -> Error { match e { + rusqlite::Error::ExecuteReturnedResults => { + let mut builder = Error::builder(ErrorKind::QueryError(e.into())); + builder.set_original_message("Execute returned results, which is not allowed in SQLite."); + + builder.build() + } + rusqlite::Error::QueryReturnedNoRows => Error::builder(ErrorKind::NotFound).build(), rusqlite::Error::SqliteFailure(