db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Tilsted <til...@daimi.au.dk>
Subject Unsigned integers
Date Sat, 29 Nov 2008 16:51:48 GMT
How do i handle unsigned integers with torque (Using MySql 5.0)?

I use maven torque:jdbc to generate my schema.xml file, but i have a 
field(Ip) that is an unsigned int in the database,
but that generate a
<column name="Ip" type="INTEGER"/>
in the schema file.
So I have 2 questions:

1: How do I get maven torque:jdbc to generate a schema for an unsigned 
int? Is this even possible? I could not find the documentation for the 
schema.xml format.

2: If i keep the signed integer version in my schema, but the field is 
unsigned in the database, what happens if call setInt() with a negative 
value.?

Martin


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


Mime
View raw message