[patch_done] Possible bug with ZTokenizer and table names
Posted: 30.06.2008, 15:36
Hi,
I have a lot of troubles while working with TZQuery objects that use tables with names that start with a number, ie. 01TabName.
Trying to debug the code I noticed that a query like:
"SELECT * FROM 01TabName"
gets tokenized wrongly and the table name becomes only "TabName", leaving "01" as an independent token.
That's because TZNumberState.NextToken gets called while tokenizing the table name.
Actually I'm using 'ado' on a MsAccess db on the 'testing' branch but I suppose this is db independent. The problems I have is that I cannot update any field because they are ReadOnly by default. From what I understand this is due to the fact that zeos cannot build updates because it hasn't the correct table name.
Thanks,
Frank
I have a lot of troubles while working with TZQuery objects that use tables with names that start with a number, ie. 01TabName.
Trying to debug the code I noticed that a query like:
"SELECT * FROM 01TabName"
gets tokenized wrongly and the table name becomes only "TabName", leaving "01" as an independent token.
That's because TZNumberState.NextToken gets called while tokenizing the table name.
Actually I'm using 'ado' on a MsAccess db on the 'testing' branch but I suppose this is db independent. The problems I have is that I cannot update any field because they are ReadOnly by default. From what I understand this is due to the fact that zeos cannot build updates because it hasn't the correct table name.
Thanks,
Frank