Apache OpenOffice (AOO) Bugzilla – Issue 18438
unable to create auto-increment fields in MySQL-ODBC database
Last modified: 2006-05-31 14:29:06 UTC
Hi, I'm unable to create a table with an auto-increment field for the primary key (or for any other field). I'm using OOo-v1.1rc2, MySQL-3.23.56, MyODBC-2.50.39 and unixODBC-2.2.3. The OOo-specifications seem to indicate this *should* be possible so I think this is a defect. I've got "auto_increment" and "last_insert_id()" in the appropriate fields in the ODBC setup dialog. Is auto-increment field creation possible or not? It's hard to tell from the OO-docs. If I create a table outside of OOo with an auto-increment field, this is shown as <auto> in the OO Tables view, and works as expected. cheers, Bryan
correcting sub component (http://www.openoffice.org/issues/describecomponents.cgi?component=database%20access) and default owner
bryan, could you try if using the "MySQL" type for the data source (instead of the "ODBC" type) changes anything? Thanks.
I already tried this. No, using Database type: MySQL doesn't work. In fact, when using the MySQL type, there are no options for specifying "retrieve generated values" (i.e. entering "auto_increment" and "last_insert_id()"). Existing auto-increment fields don't work at all with the "MySQL" database type, one has to use ODBC. Bryan
After upgrading to MyODBC-3.51, I've noticed the appearance of new column-type options in the Table Design window which specify 'Auto_increment'. Everything works as it should. This was probably never an OpenOffice issue, but a MyODBC one, but sometimes it's hard to tell. Thus, I'll set this issue to 'fixed' Bryan
Hi, so I close this issue. Bye Marc
change subcomponent to 'none'