Subject | Re: [firebird-support] Upper case behaviour |
---|---|
Author | Ann W. Harrison |
Post date | 2007-12-04T22:43:29Z |
Doug Chamberlin wrote:
parsing the output of SHOW TABLES, there's not a lot of place for
the database to put flags saying "this is pretty printed for the
user, but is not really a delimited identifier." You're reduced
to the rules that Martijn described ... and that means you quote
anything you find with lower case letters.
Why would any tool parse the output of SHOW TABLES ... well, maybe
because that's as close to a universal metadata interface as exists.
And the Information Schema (which should be that interface) doesn't
offer any help on delimited vs. preserved either.
characters in the name.
a database property at all.
Regards,
Ann
>Why is a hard question to answer. If you get your table list by
> Ah, so the problem arises when un-quoted and quoted usage is both used over
> time. Why would anyone do that or why would a tool do that?
parsing the output of SHOW TABLES, there's not a lot of place for
the database to put flags saying "this is pretty printed for the
user, but is not really a delimited identifier." You're reduced
to the rules that Martijn described ... and that means you quote
anything you find with lower case letters.
Why would any tool parse the output of SHOW TABLES ... well, maybe
because that's as close to a universal metadata interface as exists.
And the Information Schema (which should be that interface) doesn't
offer any help on delimited vs. preserved either.
>The only indication is the presence of lower case letters and special
> Is there no indicator stored in the database that a tool can use to tell
> whether identifiers were created with un-quoted or quoted style?
characters in the name.
>You can mix regular and delimited identifiers in a statement. It's not
> I always thought if the database was created using un-quoted style then you
> needed to continue to use un-quoted style. Similarly you need to be
> consistent when using quoted style. Anything else would be problematic. So
> changing Firebird to preserve case would not exacerbate the problem at all.
a database property at all.
Regards,
Ann