Product Documentation

c-treeACE V11.0 Release Notes

Previous Topic

Next Topic

Correct Length Now Always Set for CT_2STRING With setFieldAsBlob and setFieldAsString

Calling ctdbSetFieldAsBlob() on a CT_2STRING field and passing a blob with size 65537 (which is larger than this filed can accommodate) resulted in success but the field contained only 1 byte and its size was actually 1. The same problem occurred, with different thresholds, on CT_PSTRING and CT_4STRING.

The logic was modified to add length check so that calling any ctdbSetFieldAs* on CT_[2|4|P]STRING and setting a value with length greater than the maximum allowed for the field type will result in a CTDBRET_TOOBIG error.

TOCIndex