2 messages in com.mysql.lists.javaAutoincrement and metadata
FromSent OnAttachments
Heikki Hiltunen09 Oct 2001 04:40 
Paul DuBois12 Oct 2001 15:09 
Subject:Autoincrement and metadata
From:Heikki Hiltunen (heik@smilehouse.com)
Date:10/09/2001 04:40:33 AM
List:com.mysql.lists.java

I'm trying to make a program that makes exact clones of tables. The only problem is that I can't find a way to figure out if a column is auto incremented. There is a method isAutoincrement in ResultSetMetaData, but because the method's definition says something about auto increment fields being read-only and that's not the case witn MySQL, the mm driver chooses to return false even if the field is auto incremented. Well, that's witty but how DO I find out which are auto increment fields and which aren't?