Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rust/core/src/driver_exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1632,9 +1632,9 @@ unsafe extern "C" fn error_get_detail(
}
let private_data = error.private_data as *const ErrorPrivateData;

let key = (*private_data).keys[index].as_ptr();
let value = (*private_data).values[index].as_ptr();
let value_length = (*private_data).values[index].len();
let key = (&(*private_data).keys)[index].as_ptr();
let value = (&(*private_data).values)[index].as_ptr();
let value_length = (&(*private_data).values)[index].len();

FFI_AdbcErrorDetail {
key,
Expand Down
2 changes: 1 addition & 1 deletion rust/core/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ impl TryFrom<i16> for Statistics {
constants::ADBC_STATISTIC_NULL_COUNT_KEY => Ok(Self::NullCount),
constants::ADBC_STATISTIC_ROW_COUNT_KEY => Ok(Self::RowCount),
_ => Err(Error::with_message_and_status(
format!("Unknown standard statistic key: {}", value),
format!("Unknown standard statistic key: {value}"),
Status::InvalidArguments,
)),
}
Expand Down
Loading