db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-405) SYNONYM should not be allowed in SESSION schema because that can confusion wih temporary tables
Date Thu, 30 Jun 2005 17:35:59 GMT
    [ http://issues.apache.org/jira/browse/DERBY-405?page=comments#action_12314793 ] 

Daniel John Debrunner commented on DERBY-405:

Well, SYNONYM's haven't been released yet, thus we could disallow SYNONYMs in SESSION schema,
before 10.1 goes GA.
Tables & views existed before the temportary SESSION schema was added, that's why they
are allowed. Existing applications could have been using the SESSION schema.

> SYNONYM should not be allowed in SESSION schema because that can confusion wih temporary
> -----------------------------------------------------------------------------------------------
>          Key: DERBY-405
>          URL: http://issues.apache.org/jira/browse/DERBY-405
>      Project: Derby
>         Type: Bug
>   Components: SQL
>     Versions:
>     Reporter: Mamta A. Satoor
>      Fix For:

> A user should not be able to create a synonym in SESSION schema eg
> create synonym session.st1 for app.t1;
> select * from session.st1; -- refers to app.t1
> declare global temporary table st1(c11 int, c12 int) on commit preserve rows not logged;
> select * from session.st1; -- refers to app.t1, is that right?
> I think the last select * from session.st1 should goto temporary table st1 since any
references to objects in SESSION schema should first find a match against a temporary table
if one by that name exists. 
> We already discourage users from defining objects other than temporary table in SESSION
schema in the reference manual "Using SESSION as the schema name of a physical table will
not cause an error, but is discouraged. The SESSION schema name should be reserved for the
temporary table schema." But, IMHO, it will be nice to enforce this wherever possible in Derby
code rather than leaving it upto the users to avoid confusion.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message