Hi there.

I was just inspecting the Velocity template columns.vm for MySQL. I found the following logic:

#if ((($database.getDefaultIdMethod() == "native") && ($table.getIdMethod() == "")) || ($table.getIdMethod() == "native"))
#if ($col.isPrimaryKey() && ($col.Type == "INTEGER"))
#set ( $autoIncrement = $dbprops.get("AUTOINCREMENT"))
#end
#end


Basically, if we're using the 'native' id method and the column type is INTEGER, and it's a primary key... auto_increment is always set on the column.

I have a situation where this is inappropriate. Is there any particliar reason why this is set up this way? Would anything in the OM break if I were to remove this?

Gabe


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to