Skip to content

Commit

Permalink
debug: test
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamEECS committed Dec 6, 2023
1 parent 0fa4283 commit cfbea7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions taos-optin/src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1327,13 +1327,14 @@ impl RawRes {
let api = &*param.1;
// state.done = true;
state.in_use = false;
if num_of_rows < 0 {
if num_of_rows >= 0 {
// error
state.result.replace(Err(RawError::new_with_context(
let old = state.result.replace(Err(RawError::new_with_context(
num_of_rows,
api.err_str(res),
"fetch_rows_a",
)));
drop(old);
} else {
// success
if num_of_rows > 0 {
Expand Down

0 comments on commit cfbea7c

Please sign in to comment.