On Tue, Feb 06, 2001 at 10:04:28AM -0000, Shaun Campbell wrote:
>
> Apologies if this is documented somewhere but are the keywords used to
> specify the mysql data types in the schema xml file defined anywhere?
>
> I have a datatype of a blob in the mysql database. When I specify a
> MEDIUMBLOB data type I get a VARCHAR in the SQL file.
The list of supported SQL types is in conf/torque/dtd/database.dtd
MEDIUMBLOB ain't in there, which is why...
> When I build the
> project the build fails because of the following line in my MapBuilder.java
> file:
>
> tMap.addColumn ( getWishes_Description(), $col.JavaObject );
>
> The build doesn't like the $col bit in the line above.
The snippet of VTL (Velocity Template Language) you see is because
calling getJavaObject() on the $col object
(org.apache.turbine.torque.model.Column) returned null. So velocity
renders the VTL instead.
> If I change the schema xml file back to VARCHAR all is okay but I am sure
> this is not right.
You could use a BLOB, that's supported. Or you could add a patch to add
MEDIUMBLOB to the list of supported types. The DTD would need patching,
obviously - the related code is in
org.apache.turbine.torque.model.TypeMap
--
Sean Legassick
[EMAIL PROTECTED]
Je suis un homme: rien d'humain en m'est étranger
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]