We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21d8e15 commit 97f5408Copy full SHA for 97f5408
scylla-rust-wrapper/src/query_result.rs
@@ -1143,6 +1143,11 @@ pub unsafe extern "C" fn cass_value_get_bytes(
1143
*output = bytes.as_ptr() as *const cass_byte_t;
1144
*output_size = bytes.len() as u64;
1145
}
1146
+ Some(Value::RegularValue(CqlValue::Varint(varint))) => {
1147
+ let bytes = varint.as_signed_bytes_be_slice();
1148
+ std::ptr::write(output, bytes.as_ptr());
1149
+ std::ptr::write(output_size, bytes.len() as size_t);
1150
+ }
1151
Some(_) => return CassError::CASS_ERROR_LIB_INVALID_VALUE_TYPE,
1152
None => return CassError::CASS_ERROR_LIB_NULL_VALUE,
1153
0 commit comments