Primary Key not detected when a table has a Unique Key

DObject O/R Mapping Suite

Primary Key not detected when a table has a Unique Key


wasuplee123 08-04-2008, 4:34 PM
Thanks for all the help with the questions so far.

I'm using MySQL with ODBC in MacroObject Code Auto. I'm having a problem when I try to use the "Synchronize" feature.

For a normal table with a primary key and no other keys, it correctly shows the "key" icon next to the primary key field and I am able to check the "AutoInc" column after it has been synchronized. However if I have a table with a primary key and at least 1 unique key as well, when I click "Synchronize" and expand the "Fields" node of my table, it no longer shows the Primary Key field with a "key" icon next to it.

Re: Primary Key not detected when a table has a Unique Key


David 08-06-2008, 1:41 AM
We've released a new update of CodeAuto.
Please install the newest version from our web-site:
  http://www.macrobject.com/en/codeauto/download.htm

A new parameter "PrimaryKeyEditable" has been added to CodeAuto.
Please use "PrimaryKeyEditable" to allow you modify the primary keys:
  CodeAuto.exe /pPrimaryKeyEditable=true

Any questions please feel free to contact us, thanks.

Powered by Community Server, by Telligent Systems