You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by "dan meany (JIRA)" <ji...@apache.org> on 2005/09/13 16:23:54 UTC

[jira] Created: (DDLUTILS-15) Create Table should use quotes to handle columns named with db-specific reserved words

Create Table should use quotes to handle columns named with db-specific reserved words
--------------------------------------------------------------------------------------

         Key: DDLUTILS-15
         URL: http://issues.apache.org/jira/browse/DDLUTILS-15
     Project: DdlUtils
        Type: Bug
 Environment: all
    Reporter: dan meany
 Assigned to: Thomas Dudziak 


For example in Derby
   create table test (system_user integer);
fails, but
   create table test ("system_user" integer);
succeeds.

Reserved words vary by database - "plan" is a reserved word in Sybase but not Derby, and "function" is a reserved word in Derby but not Sybase.  Quoting all column names would handle all the cases.


-- 
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] Resolved: (DDLUTILS-15) Create Table should use quotes to handle columns named with db-specific reserved words

Posted by "Thomas Dudziak (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DDLUTILS-15?page=all ]
     
Thomas Dudziak resolved DDLUTILS-15:
------------------------------------

    Resolution: Fixed

Not only for column names, but for all identifiers (table names, column names, constraint names etc.)

> Create Table should use quotes to handle columns named with db-specific reserved words
> --------------------------------------------------------------------------------------
>
>          Key: DDLUTILS-15
>          URL: http://issues.apache.org/jira/browse/DDLUTILS-15
>      Project: DdlUtils
>         Type: Bug
>  Environment: all
>     Reporter: dan meany
>     Assignee: Thomas Dudziak

>
> For example in Derby
>    create table test (system_user integer);
> fails, but
>    create table test ("system_user" integer);
> succeeds.
> Reserved words vary by database - "plan" is a reserved word in MS SQL Server but not Derby, and "function" is a reserved word in Derby but not Sybase.  Quoting all column names would handle all the cases.

-- 
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: (DDLUTILS-15) Create Table should use quotes to handle columns named with db-specific reserved words

Posted by "dan meany (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DDLUTILS-15?page=all ]

dan meany updated DDLUTILS-15:
------------------------------

    Description: 
For example in Derby
   create table test (system_user integer);
fails, but
   create table test ("system_user" integer);
succeeds.

Reserved words vary by database - "plan" is a reserved word in MS SQL Server but not Derby, and "function" is a reserved word in Derby but not Sybase.  Quoting all column names would handle all the cases.


  was:
For example in Derby
   create table test (system_user integer);
fails, but
   create table test ("system_user" integer);
succeeds.

Reserved words vary by database - "plan" is a reserved word in Sybase but not Derby, and "function" is a reserved word in Derby but not Sybase.  Quoting all column names would handle all the cases.



> Create Table should use quotes to handle columns named with db-specific reserved words
> --------------------------------------------------------------------------------------
>
>          Key: DDLUTILS-15
>          URL: http://issues.apache.org/jira/browse/DDLUTILS-15
>      Project: DdlUtils
>         Type: Bug
>  Environment: all
>     Reporter: dan meany
>     Assignee: Thomas Dudziak

>
> For example in Derby
>    create table test (system_user integer);
> fails, but
>    create table test ("system_user" integer);
> succeeds.
> Reserved words vary by database - "plan" is a reserved word in MS SQL Server but not Derby, and "function" is a reserved word in Derby but not Sybase.  Quoting all column names would handle all the cases.

-- 
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