Skip to content

Commit 138afb9

Browse files
committed
no warning when statement row count is not available
1 parent 3180560 commit 138afb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlx-core/src/odbc/connection/odbc_bridge.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ fn extract_rows_affected<S: AsStatementRef>(stmt: &mut S) -> u64 {
9797
let count = match stmt_ref.row_count().into_result(&stmt_ref) {
9898
Ok(count) => count,
9999
Err(e) => {
100-
log::warn!("Failed to get row count: {}", e);
100+
log::debug!("No row count available: {}", e);
101101
return 0;
102102
}
103103
};
104104

105105
match u64::try_from(count) {
106106
Ok(count) => count,
107107
Err(e) => {
108-
log::warn!("Failed to get row count: {}", e);
108+
log::warn!("Invalid row count: {}", e);
109109
0
110110
}
111111
}

0 commit comments

Comments
 (0)