db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Dudziak (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DDLUTILS-54) Column comparison does not check on native types
Date Thu, 13 Jul 2006 06:54:32 GMT
     [ http://issues.apache.org/jira/browse/DDLUTILS-54?page=all ]

Thomas Dudziak updated DDLUTILS-54:
-----------------------------------

    Fix Version: 1.0

> Column comparison does not check on native types
> ------------------------------------------------
>
>          Key: DDLUTILS-54
>          URL: http://issues.apache.org/jira/browse/DDLUTILS-54
>      Project: DdlUtils
>         Type: Bug

>     Reporter: Konstantinos Stathatos
>     Assignee: Thomas Dudziak
>     Priority: Minor
>      Fix For: 1.0
>  Attachments: derby_test.xml, svndiff, zementis_tests.ant
>
> The attached Ant script  creates a table (in Derby) and then tries to alter it, using
the same database description. I would expect the DdlUtils would not try to modify anything
as the database has not changed.
> However, the database defines a BOOLEAN column and a FLOAT column which in a Derby are
mapped to a SMALLINT column and a DOUBLE column. With such a mapping, next time the columns
are compared DdlUtils finds them different since the type codes are different. As a result,
it tries to modify the columns even though the modification is not necessary.
> Generally, such modification is really harmless. However,  under my particular use case,
occasionally a DBA would have to get involved and manually update the database if modifications
are needed (i.e. if a non-empty alter sql is generated).  This means that taking the extra
step to check based on the native types if the modifications are material or not would be
important.

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


Mime
View raw message