Subject | More info on "Quoted fields seem to be broken in TIBODataset when they're involved in indexing" |
---|---|
Author | firebird@spence.users.panix.com |
Post date | 2006-07-28T17:42:22Z |
I wrote:
that
is, that the string 'Acc ID' is being used to search the list of indexed
fields maintained
by the internal dataset, which has them listed as 'ARINV."Acc ID" ', etc.
The search
appears to try to account for removing ARINV., but can't cope with the
quotes.
Michael D. Spence
Mockingbird Data Systems, Inc.
[Non-text portions of this message have been removed]
>[1] I looked at the source for TIBODataset.SetKeyFields, and ISTM that thefirst
>FindField call in GetIndex would always fail, because the field name intmpStr
>would always be the fully qualified field name (e.g., 'ARINV."Acc ID" '),whereas
>the FieldName members are always unqualified and without quoting (e.g.,'Acc ID').
>I added some code to strip the table name and any quotes, and that seemedto
>work, but then I got the other error ("Field 'Acc ID' is not indexed andcannot be
>modified.") so I removed the changes and worked around calling FindNearestby
>using Locate instead.It seems that "Not indexed and cannot be modified" has the same root cause,
that
is, that the string 'Acc ID' is being used to search the list of indexed
fields maintained
by the internal dataset, which has them listed as 'ARINV."Acc ID" ', etc.
The search
appears to try to account for removing ARINV., but can't cope with the
quotes.
Michael D. Spence
Mockingbird Data Systems, Inc.
[Non-text portions of this message have been removed]