Back in version 5, IIRC, I raised the issue that code generation would in certain circumstances misname fields. The problem seems consistent when long table names are used. So, by example, a table named AllocSectionIndex
, with a primary key field as AllocSectionIndex.ID
;
When SC has woven its magic, AllocSectionIndex.ID
becomes ocSectionIndex.ID
The work around is to alias the field name, e.g. “SELECT … AllocSectionIndex.ID
AS someidfield”.
The bug persists in SC8.