Skip to content

Commit a1ca6b1

Browse files
committed
bindings/c: Fix libsql_query() error too...
1 parent 28294c9 commit a1ca6b1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bindings/c/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,13 +791,13 @@ pub unsafe extern "C" fn libsql_query(
791791
Ok(rows) => {
792792
let rows = Box::leak(Box::new(libsql_rows { result: rows }));
793793
*out_rows = libsql_rows_t::from(rows);
794+
0
794795
}
795796
Err(e) => {
796797
set_err_msg(format!("Error executing statement: {}", e), out_err_msg);
797-
return 1;
798+
1
798799
}
799-
};
800-
0
800+
}
801801
}
802802

803803
#[no_mangle]

0 commit comments

Comments
 (0)