#1 2012-04-29 13:14:51

coblongpamor
Member
From: Bali-Indonesia
Registered: 2010-11-07
Posts: 130
Website

Problem with TSQLRecord.ClearProperties method

I get AV error when calling a method TSQLRecord.ClrearProperties with sftEnumerate  on property.
for the quick fix, i just add sftEnumerate to the subtraction of COPIABLE_FIELDS.

 
COPIABLE_FIELDS: TSQLFieldTypes =
    [low(TSQLFieldType)..high(TSQLFieldType)] - [sftUnknown, sftEnumerate, sftMany];

Offline

#2 2012-04-29 17:35:35

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Problem with TSQLRecord.ClearProperties method

The issue was in TPropInfo.SetValue.

Fix committed in http://synopse.info/fossil/info/e11083b973

Offline

#3 2012-04-30 00:39:45

coblongpamor
Member
From: Bali-Indonesia
Registered: 2010-11-07
Posts: 130
Website

Re: Problem with TSQLRecord.ClearProperties method

now is worked.
thank you.

Offline

Board footer

Powered by FluxBB