db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "CG Monroe (JIRA)" <j...@apache.org>
Subject [jira] Commented: (TORQUE-64) Bugs in Torque-44 patch / Test-project fixes
Date Tue, 14 Nov 2006 23:34:38 GMT
    [ http://issues.apache.org/jira/browse/TORQUE-64?page=comments#action_12449861 ] 
CG Monroe commented on TORQUE-64:

>From the MySQL 3.23, 4.0, 4.1 manual:  http://dev.mysql.com/doc/refman/4.1/en/char.html

Values in VARCHAR columns are variable-length strings. The length can be specified as a value
from 1 to 255 before MySQL 4.0.2 and 0 to 255 as of MySQL 4.0.2.

So a column with type="VARCHAR" size="2000" fails with these versions... LONGVARCHAR doesn't.

Just trying to make sure the test-project can run on as many DB's as possible.

> Bugs in Torque-44 patch / Test-project fixes
> --------------------------------------------
>                 Key: TORQUE-64
>                 URL: http://issues.apache.org/jira/browse/TORQUE-64
>             Project: Torque
>          Issue Type: Bug
>          Components: Generator, Test Project
>    Affects Versions: 3.3
>            Reporter: CG Monroe
>         Assigned To: Thomas Fischer
>            Priority: Blocker
>             Fix For: 3.3
>         Attachments: Torque-64.zip
> This patch fixes several things:
> First, it fixes some bugs in the Torque-44 patch that support the
> torque.deprecated.uppercasePeer property.  There are some mistakes in 
> it that cause invalid/unusable object to be created.
> Next, it fixes a problem with the test-schema.xml schema and MySQL 4.0.
> A column was defined as Varchar and a length of 2000.  This was illegal 
> in MySQL 4.0, so the column has been redefined as LONGVARCHAR.
> Finally, it updates a couple of the Test-Project test cases to 
> support both types of Peer names.
> Files specific changes:
> MapBuilder.vm:
> Velocity logical expression was ! value and needed to be value.
> Peer.vm
> If uppercase column names was desired, the string value for the 
> name would have a } tacked on the end.
> test-schema.xml
> Changed type="Varchar" size="2000" to type="longvarchar" size="2000"
> DatabaseMapTest.java
> Checks for upper case column names if mixed case not found.
> OMByNameMethodsText.java
> Uses Type*PEER column names to test with rather than hard coded names.

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


To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org

View raw message