Skip to content

Commit 2bda46f

Browse files
committed
user_type: cass_user_type_set_decimal[...]
1 parent ffc31c7 commit 2bda46f

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,7 @@ The driver inherits almost all the features of C/C++ and Rust drivers, such as:
191191
</tr>
192192
<tr>
193193
<td>cass_user_type_set_custom[by_name]</td>
194-
<td rowspan="2">Unimplemented because of the same reasons as binding for statements.<br> <b>Note</b>: The driver does not check whether the type of the value being set for a field of the UDT is compatible with the field's actual type.</td>
195-
</tr>
196-
<tr>
197-
<td>cass_user_type_set_decimal[by_name]</td>
194+
<td>Unimplemented because of the same reasons as binding for statements.<br> <b>Note</b>: The driver does not check whether the type of the value being set for a field of the UDT is compatible with the field's actual type.</td>
198195
</tr>
199196
<tr>
200197
<td colspan=2 align="center" style="font-weight:bold">Value</td>

scylla-rust-wrapper/src/user_type.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ make_binders!(
187187
cass_user_type_set_duration_by_name,
188188
cass_user_type_set_duration_by_name_n
189189
);
190+
make_binders!(
191+
decimal,
192+
cass_user_type_set_decimal,
193+
cass_user_type_set_decimal_by_name,
194+
cass_user_type_set_decimal_by_name_n
195+
);
190196
make_binders!(
191197
collection,
192198
cass_user_type_set_collection,

src/testing_unimplemented.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,3 @@ cass_user_type_set_custom_by_name(CassUserType* user_type,
411411
size_t value_size){
412412
throw std::runtime_error("UNIMPLEMENTED cass_user_type_set_custom_by_name\n");
413413
}
414-
CASS_EXPORT CassError
415-
cass_user_type_set_decimal_by_name(CassUserType* user_type,
416-
const char* name,
417-
const cass_byte_t* varint,
418-
size_t varint_size,
419-
int scale){
420-
throw std::runtime_error("UNIMPLEMENTED cass_user_type_set_decimal_by_name\n");
421-
}

0 commit comments

Comments
 (0)