Keep track of SQL input

This commit is contained in:
gwenn
2022-04-21 15:14:08 +02:00
parent cfcbb56fce
commit 8370970b0b
3 changed files with 22 additions and 10 deletions

View File

@@ -257,7 +257,7 @@ impl InnerConnection {
};
// If there is an error, *ppStmt is set to NULL.
if r != ffi::SQLITE_OK {
return Err(unsafe { error_with_offset(self.db, r) });
return Err(unsafe { error_with_offset(self.db, r, sql) });
}
// If the input text contains no SQL (if the input is an empty string or a
// comment) then *ppStmt is set to NULL.