Subject | Re: [IBO] String parsing issue with TableName setting |
---|---|
Author | Robert Martin |
Post date | 2013-12-02T19:48:33Z |
> I probably could make a fix for it to ignore it because if you wanted toHi
> work with an empty tablename you could just directly assign it "" and it
> would recognize it. I'll put in a fix for the next release. You can probably
> patch it easily enough or do you want me to just send you a patch?
I'm not sure I have explained the issue clearly enough. I feel that if
you set table name to an empty string it should stay that way. It
doesn't make sense for the component to treat it as a reserved word and
encapsulate it in double quotes, its not like you can create tables in
Firebird that have no name!
You cant do this..
CREATE TABLE ""
(
....
)
OR
SELECT * FROM ""
Therefore it doesn't make sense that when you set a table name to ''
(empty string) to indicate unassigned that the component converts this a
string containing two double quotes ("").
Code example
myTable.Tablename := ''; //Set to empty string
ShowMessage(myTable.Tablename); //Displays ""
The above displays "", in older IBo versions it (correctly) displayed a
blank message box.
I can't see that changing my code to assign tablename as "" and having
your components convert that to an empty string makes any sense.
If you don't think a fix to IBO is required please let me know and I
will just change my code to also treat "" as an empty table name.
Cheers