Project

General

Profile

Support #5111

Updated by Greg Shah over 3 years ago

This might be an easy one but damn if I can figure out what the connection is between those dmo temp-table schema/buffer and the buffer/bufferfield handles. Currently although omit initial values parameter exists in json serialization routines that seems to be simply ignored for now hence our tests fails so thought might be a good idea to implement that while at it but then how one could tell if a particular @TempTableSchema.Column@ in a @TempRecord@ has the default value?

In 4GL we would check buffer-field default-value against buffer-value and after going through all unwrapping to buffer then buffer field it looks like the code gets converted in FWD to something like this:
<pre>
if (_isNotEqual(htt.unwrapBuffer().bufferField(1).unwrapBufferField().getDefaultValue(), htt.unwrapBuffer().bufferField(1).unwrapBufferField().value()))
{
message("not default");
}
</pre>

Problem is, how to get from those 'persist' @Temporary@ objects back to the buffer handle, or is there a better (easier) way?

Back