Subject | Re: [Firebird-Architect] Multi-level name space |
---|---|
Author | Martijn Tonies |
Post date | 2006-01-13T13:27:51Z |
> > Martijn, please stop and think for a moment. You aren't screwed. ThereStill, I wouldn't expect "hungry.wolf" to end up in "hungry", or HUNGRY,
> > is no incompatibility -- you can still refer to you table with the
> > embedded dot form and it will still work. There is no problem there at
> > all. The problem, if it is a problem, is that the following sequence
> > *does* fail:
> >
> > create table "hungry"."wolf" (n int);
> > create table "hungry.wolf" (n int);
for that matter.
IMO, use quotes (if any) around each part of the name.
"catalog"."schema"."object".
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> > But it fails cleanly at DDL time so there can't be any actual ambiguityindeed.
> > problems. So if the only cost of the compromise is that a user is
> > prevented from defining a table "wolf" in the schema "hungry" *and* an
> > unqualified table "hungry.wolf", then the compromise is a bargain
>
> And both are in the schema - hungry - not HUNGRY which
> create table hungry."wolf" (n int);
> would produce?
>
> (I am currently battling with this in PHP cross database scripts with
> the case of the alias :) )