db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Gordon <rgor...@mwt.net>
Subject Sorry [was: Re: autoincrement deprecated?]
Date Wed, 04 Feb 2004 17:41:19 GMT

Ready, Fire, Aim.

(I found the answer on the archives).

The column attribute is autoIncrement NOT autoincrement.

Rob


Rob Gordon wrote:

> Does anyone know the story on why autoincrement is deprecated? It is
> supposed to be replaced with native.
>
> [Using torque 3.1]
>
> If I generate my sql with a table schema with idMethod='autoincrement'
> I get the properly generated table creation sql (per mysql documentation)
> with the AUTO_INCREMENT keyword in the column definition.
>
> If I use idMethod='native', I do not get the table sql as would be expected
> by mysql doc. When I try to insert  multiple records, I get an exception:
> Caused by: java.sql.SQLException: Invalid argument value,  message from server:
> "Duplicate entry '0' for key 1"
>
> It appears 'native' does not do autoincrement.
>
> Am I missing something?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org


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