You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Dieter Wimberger (JIRA)" <ji...@apache.org> on 2006/12/13 20:24:21 UTC

[jira] Created: (DERBY-2169) Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table

Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table 
--------------------------------------------------------------------------------------------

                 Key: DERBY-2169
                 URL: http://issues.apache.org/jira/browse/DERBY-2169
             Project: Derby
          Issue Type: Bug
    Affects Versions: 10.2.1.6
         Environment: OS X, java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)

            Reporter: Dieter Wimberger


syscs_util.syscs_compress_table throws a "schema does not exist" exception for an existing schema.

Call is made according to the documentation in the reference manual:
SYSCS_UTIL.SYSCS_COMPRESS_TABLE (IN SCHEMANAME VARCHAR(128), 
IN TABLENAME VARCHAR(128), IN SEQUENTIAL SMALLINT)

Testcase using ij:

connect 'jdbc:derby:test;create=true';    
create schema test;
create table test.test(id varchar(255));
insert into test.test values('test1');       
insert into test.test values('test2');
call syscs_util.syscs_compress_table('test','test',0);

ERROR 38000: The exception 'java.sql.SQLException: Schema 'test' does not exist' was thrown while evaluating an expression.
ERROR 42Y07: Schema 'test' does not exist



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DERBY-2169) Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table

Posted by "Daniel John Debrunner (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-2169?page=all ]

Daniel John Debrunner updated DERBY-2169:
-----------------------------------------

    Component/s: Documentation

The documentation for SYSCS_UTIL.SYSCS_COMPRESS_TABLE (and probably other procedures) could be improved to state what is expected for the schema name and table name. This procedure's documentation does have some comments for how the table name is treated but not for the schema name. The ones for the table name could be improved, "passed to SQL", what does that mean here, what SQL? Better just to say how the table name and schema name map to the actual objects.

> Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table
> -------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2169
>                 URL: http://issues.apache.org/jira/browse/DERBY-2169
>             Project: Derby
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 10.2.1.6
>         Environment: OS X, java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
> Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
>            Reporter: Dieter Wimberger
>
> syscs_util.syscs_compress_table throws a "schema does not exist" exception for an existing schema.
> Call is made according to the documentation in the reference manual:
> SYSCS_UTIL.SYSCS_COMPRESS_TABLE (IN SCHEMANAME VARCHAR(128), 
> IN TABLENAME VARCHAR(128), IN SEQUENTIAL SMALLINT)
> Testcase using ij:
> connect 'jdbc:derby:test;create=true';    
> create schema test;
> create table test.test(id varchar(255));
> insert into test.test values('test1');       
> insert into test.test values('test2');
> call syscs_util.syscs_compress_table('test','test',0);
> ERROR 38000: The exception 'java.sql.SQLException: Schema 'test' does not exist' was thrown while evaluating an expression.
> ERROR 42Y07: Schema 'test' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DERBY-2169) Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table

Posted by "Suresh Thalamati (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-2169?page=comments#action_12458246 ] 
            
Suresh Thalamati commented on DERBY-2169:
-----------------------------------------

I think this procedure expects the scema name and the table name to be passed to in upper cases , unless the table/schema were created as quoted identifiers.  you may want to try the following :

call syscs_util.syscs_compress_table('TEST','TEST, 0 );



> Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table
> -------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2169
>                 URL: http://issues.apache.org/jira/browse/DERBY-2169
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.2.1.6
>         Environment: OS X, java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
> Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
>            Reporter: Dieter Wimberger
>
> syscs_util.syscs_compress_table throws a "schema does not exist" exception for an existing schema.
> Call is made according to the documentation in the reference manual:
> SYSCS_UTIL.SYSCS_COMPRESS_TABLE (IN SCHEMANAME VARCHAR(128), 
> IN TABLENAME VARCHAR(128), IN SEQUENTIAL SMALLINT)
> Testcase using ij:
> connect 'jdbc:derby:test;create=true';    
> create schema test;
> create table test.test(id varchar(255));
> insert into test.test values('test1');       
> insert into test.test values('test2');
> call syscs_util.syscs_compress_table('test','test',0);
> ERROR 38000: The exception 'java.sql.SQLException: Schema 'test' does not exist' was thrown while evaluating an expression.
> ERROR 42Y07: Schema 'test' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DERBY-2169) Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table

Posted by "Dieter Wimberger (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-2169?page=comments#action_12458240 ] 
            
Dieter Wimberger commented on DERBY-2169:
-----------------------------------------

Actually the same problem is reported for inplace compression.

call syscs_util.syscs_inplace_compress_table('test','test',1,1,1);
ERROR 42Y07: Schema 'test' does not exist


> Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table
> -------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2169
>                 URL: http://issues.apache.org/jira/browse/DERBY-2169
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.2.1.6
>         Environment: OS X, java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
> Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
>            Reporter: Dieter Wimberger
>
> syscs_util.syscs_compress_table throws a "schema does not exist" exception for an existing schema.
> Call is made according to the documentation in the reference manual:
> SYSCS_UTIL.SYSCS_COMPRESS_TABLE (IN SCHEMANAME VARCHAR(128), 
> IN TABLENAME VARCHAR(128), IN SEQUENTIAL SMALLINT)
> Testcase using ij:
> connect 'jdbc:derby:test;create=true';    
> create schema test;
> create table test.test(id varchar(255));
> insert into test.test values('test1');       
> insert into test.test values('test2');
> call syscs_util.syscs_compress_table('test','test',0);
> ERROR 38000: The exception 'java.sql.SQLException: Schema 'test' does not exist' was thrown while evaluating an expression.
> ERROR 42Y07: Schema 'test' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DERBY-2169) Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table

Posted by "Dieter Wimberger (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-2169?page=comments#action_12458241 ] 
            
Dieter Wimberger commented on DERBY-2169:
-----------------------------------------

All was created and passed in lower case.

However, here is what happens with the schema in uppercase:

call syscs_util.syscs_compress_table('TEST','test',1);
ERROR 38000: The exception 'java.sql.SQLException: 'ALTER TABLE' cannot be performed on 'TEST.test' because it does not exist.' was thrown while evaluating an expression.
ERROR 42Y55: 'ALTER TABLE' cannot be performed on 'TEST.test' because it does not exist.

call syscs_util.syscs_inplace_compress_table('TEST','test',1,1,1);
ERROR 42X05: Table/View 'TEST.test' does not exist.



> Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table
> -------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2169
>                 URL: http://issues.apache.org/jira/browse/DERBY-2169
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.2.1.6
>         Environment: OS X, java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
> Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
>            Reporter: Dieter Wimberger
>
> syscs_util.syscs_compress_table throws a "schema does not exist" exception for an existing schema.
> Call is made according to the documentation in the reference manual:
> SYSCS_UTIL.SYSCS_COMPRESS_TABLE (IN SCHEMANAME VARCHAR(128), 
> IN TABLENAME VARCHAR(128), IN SEQUENTIAL SMALLINT)
> Testcase using ij:
> connect 'jdbc:derby:test;create=true';    
> create schema test;
> create table test.test(id varchar(255));
> insert into test.test values('test1');       
> insert into test.test values('test2');
> call syscs_util.syscs_compress_table('test','test',0);
> ERROR 38000: The exception 'java.sql.SQLException: Schema 'test' does not exist' was thrown while evaluating an expression.
> ERROR 42Y07: Schema 'test' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DERBY-2169) Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table

Posted by "Bryan Pendleton (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-2169?page=comments#action_12458239 ] 
            
Bryan Pendleton commented on DERBY-2169:
----------------------------------------

Perhaps this is an upper/lower case issue?

You created the schema TEST, but are trying to compress the schema test.

try changing your procedure call to pass 'TEST' rather than 'test'.

> Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table
> -------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2169
>                 URL: http://issues.apache.org/jira/browse/DERBY-2169
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.2.1.6
>         Environment: OS X, java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
> Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
>            Reporter: Dieter Wimberger
>
> syscs_util.syscs_compress_table throws a "schema does not exist" exception for an existing schema.
> Call is made according to the documentation in the reference manual:
> SYSCS_UTIL.SYSCS_COMPRESS_TABLE (IN SCHEMANAME VARCHAR(128), 
> IN TABLENAME VARCHAR(128), IN SEQUENTIAL SMALLINT)
> Testcase using ij:
> connect 'jdbc:derby:test;create=true';    
> create schema test;
> create table test.test(id varchar(255));
> insert into test.test values('test1');       
> insert into test.test values('test2');
> call syscs_util.syscs_compress_table('test','test',0);
> ERROR 38000: The exception 'java.sql.SQLException: Schema 'test' does not exist' was thrown while evaluating an expression.
> ERROR 42Y07: Schema 'test' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DERBY-2169) Documentation for SYSCS_UTIL procedures should clearly state how to specify schema name and table name correctly

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-2169:
--------------------------------------

    Summary: Documentation for SYSCS_UTIL procedures should clearly state how to specify schema name and table name correctly  (was: Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table)

Changed the description of the issue to reflect that this is a documentation bug and not a code bug.

> Documentation for SYSCS_UTIL procedures should clearly state how to specify schema name and table name correctly
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2169
>                 URL: https://issues.apache.org/jira/browse/DERBY-2169
>             Project: Derby
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 10.2.1.6
>         Environment: OS X, java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
> Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
>            Reporter: Dieter Wimberger
>
> syscs_util.syscs_compress_table throws a "schema does not exist" exception for an existing schema.
> Call is made according to the documentation in the reference manual:
> SYSCS_UTIL.SYSCS_COMPRESS_TABLE (IN SCHEMANAME VARCHAR(128), 
> IN TABLENAME VARCHAR(128), IN SEQUENTIAL SMALLINT)
> Testcase using ij:
> connect 'jdbc:derby:test;create=true';    
> create schema test;
> create table test.test(id varchar(255));
> insert into test.test values('test1');       
> insert into test.test values('test2');
> call syscs_util.syscs_compress_table('test','test',0);
> ERROR 38000: The exception 'java.sql.SQLException: Schema 'test' does not exist' was thrown while evaluating an expression.
> ERROR 42Y07: Schema 'test' does not exist

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-2169) Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table

Posted by "Yip Ng (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-2169?page=comments#action_12458564 ] 
            
Yip Ng commented on DERBY-2169:
-------------------------------

Another behavior not mentioned in the current documentation of syscs_util.syscs_compress_table and syscs_util.syscs_inplace_compress_table is that the latter can perform compression on schema 'SYS' (system tables) in some cases and the former cannot.  This is probably due to syscs_util.syscs_compress_table transforms the request to an internal ALTER TABLE statement which in its logic path, forbids operation on system tables.  I think this restriction should be relaxed in the future so that system tables can also be compressed.  (Also see DERBY-1062)  

ij> call syscs_util.syscs_inplace_compress_table('SYS','SYSDEPENDS',1,1,1);
0 rows inserted/updated/deleted

ij> call syscs_util.syscs_compress_table('SYS','SYSDEPENDS', 1);
ERROR 38000: The exception 'java.sql.SQLException: 'ALTER TABLE' is not allowed
in the 'SYS' schema.' was thrown while evaluating an expression.
ERROR 42X62: 'ALTER TABLE' is not allowed in the 'SYS' schema.


> Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table
> -------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2169
>                 URL: http://issues.apache.org/jira/browse/DERBY-2169
>             Project: Derby
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 10.2.1.6
>         Environment: OS X, java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
> Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
>            Reporter: Dieter Wimberger
>
> syscs_util.syscs_compress_table throws a "schema does not exist" exception for an existing schema.
> Call is made according to the documentation in the reference manual:
> SYSCS_UTIL.SYSCS_COMPRESS_TABLE (IN SCHEMANAME VARCHAR(128), 
> IN TABLENAME VARCHAR(128), IN SEQUENTIAL SMALLINT)
> Testcase using ij:
> connect 'jdbc:derby:test;create=true';    
> create schema test;
> create table test.test(id varchar(255));
> insert into test.test values('test1');       
> insert into test.test values('test2');
> call syscs_util.syscs_compress_table('test','test',0);
> ERROR 38000: The exception 'java.sql.SQLException: Schema 'test' does not exist' was thrown while evaluating an expression.
> ERROR 42Y07: Schema 'test' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DERBY-2169) Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table

Posted by "Dieter Wimberger (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-2169?page=comments#action_12458249 ] 
            
Dieter Wimberger commented on DERBY-2169:
-----------------------------------------

call syscs_util.syscs_compress_table('TEST','TEST, 0 ); 

Seems to work properly, nonetheless,  this isn't really the expected behaviour.
Maybe the manual should be more explicit about this behaviour, making a cross reference to the fact that the table identifier unquoted is case insensitive BUT translated to upper case, so that the procedure expects all in UPPERCASE.




> Schema does not exist exception for existing schema calling syscs_util.syscs_compress_table
> -------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2169
>                 URL: http://issues.apache.org/jira/browse/DERBY-2169
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.2.1.6
>         Environment: OS X, java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
> Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
>            Reporter: Dieter Wimberger
>
> syscs_util.syscs_compress_table throws a "schema does not exist" exception for an existing schema.
> Call is made according to the documentation in the reference manual:
> SYSCS_UTIL.SYSCS_COMPRESS_TABLE (IN SCHEMANAME VARCHAR(128), 
> IN TABLENAME VARCHAR(128), IN SEQUENTIAL SMALLINT)
> Testcase using ij:
> connect 'jdbc:derby:test;create=true';    
> create schema test;
> create table test.test(id varchar(255));
> insert into test.test values('test1');       
> insert into test.test values('test2');
> call syscs_util.syscs_compress_table('test','test',0);
> ERROR 38000: The exception 'java.sql.SQLException: Schema 'test' does not exist' was thrown while evaluating an expression.
> ERROR 42Y07: Schema 'test' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira