2 messages in com.mysql.lists.javaRE: How to detect if a key is auto_in...
FromSent OnAttachments
Ronald Klop19 Jul 2005 03:46 
Ronald Klop19 Jul 2005 07:46 
Subject:RE: How to detect if a key is auto_increment with 3.1.10.
From:Ronald Klop (rona@base.nl)
Date:07/19/2005 07:46:19 AM
List:com.mysql.lists.java

Thanks for you quick reply. Never seen that method before. It's working in our
code already.

Ronald.

On Tue Jul 19 13:02:42 CEST 2005 Vestergaard Dann <Da@danfoss.com> wrote:

Hi Ronald

Use the isAutoIncrement(int Column).

on the resultset call the rs.getMetaData().isAutoIncrement(1)..

(I am using versino 3.1.8..)

Dann

-----Original Message----- From: Ronald Klop [mailto:rona@base.nl] Sent: 19. juli 2005 12:47 To: ja@lists.mysql.com Subject: How to detect if a key is auto_increment with 3.1.10.

Hello,

With 3.0.x drivers there was an 'auto_increment' String in the 'remark' field of DatabaseMetaData.getColumns(...). In 3.1.10 it isn't there anymore. What is the current way of finding out if a column is auto_increment?