Paste relevant section from SQLite documantation

This commit is contained in:
gwenn 2019-10-29 20:26:35 +01:00
parent edfd7658c3
commit 8eb844b0c9

View File

@ -262,8 +262,9 @@ impl InnerConnection {
) )
} }
}; };
// If there is an error, *ppStmt is set to NULL.
self.decode_result(r)?; self.decode_result(r)?;
// If the input text contains no SQL (if the input is an empty string or a comment) then *ppStmt is set to NULL.
let c_stmt: *mut ffi::sqlite3_stmt = unsafe { c_stmt.assume_init() }; let c_stmt: *mut ffi::sqlite3_stmt = unsafe { c_stmt.assume_init() };
let c_tail: *const c_char = unsafe { c_tail.assume_init() }; let c_tail: *const c_char = unsafe { c_tail.assume_init() };
// TODO ignore spaces, comments, ... at the end // TODO ignore spaces, comments, ... at the end