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 2bda46f commit 134f891Copy full SHA for 134f891
scylla-rust-wrapper/src/query_result.rs
@@ -1170,6 +1170,11 @@ pub unsafe extern "C" fn cass_value_get_bytes(
1170
*output = bytes.as_ptr() as *const cass_byte_t;
1171
*output_size = bytes.len() as u64;
1172
}
1173
+ Some(Value::RegularValue(CqlValue::Varint(varint))) => {
1174
+ let bytes = varint.as_signed_bytes_be_slice();
1175
+ std::ptr::write(output, bytes.as_ptr());
1176
+ std::ptr::write(output_size, bytes.len() as size_t);
1177
+ }
1178
Some(_) => return CassError::CASS_ERROR_LIB_INVALID_VALUE_TYPE,
1179
None => return CassError::CASS_ERROR_LIB_NULL_VALUE,
1180
0 commit comments