Fix repeated binding of first argument

Co-authored-by: LoveSy <shana@zju.edu.cn>
This commit is contained in:
Wang Han 2025-01-19 11:57:09 +08:00 committed by GitHub
parent 110dd4a8b9
commit 23eff70883
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,6 +146,7 @@ unsafe extern "C" fn bind_arguments(v: *mut c_void, idx: i32, stmt: Pin<&mut DbS
let args = &mut *(v as *mut DbArgs<'_>);
if args.curr < args.args.len() {
let arg = &args.args[args.curr];
args.curr += 1;
match *arg {
Text(v) => stmt.bind_text(idx, v),
Integer(v) => stmt.bind_int64(idx, v),