Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ResultSetMetaData.isAutoIncrement() Question

843854Apr 3 2002 — edited Apr 5 2002
hi all,
When i tried to identify if a field is auto-incrementing, i find that the function:isAutoIncrement works not good.
I've try this table in mysql:
create talbe test (id int NOT��NULL AUTO_INCREMENT primary key);
The function always return false.
I tried it in DB2, it did not work too.
Is it something wrong in my code? Or something wrong in JDBC Driver supplied by 3rd party?
(
mysql JDBC Driver::org.gjt.mm.mysql.Driver
DB2 JDBC Driver:COM.ibm.db2.jdbc.app.DB2Driver
)
thx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2002
Added on Apr 3 2002
6 comments
88 views