To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=48442
                  Issue #:|48442
                  Summary:|Error in auto generated column for primary key
                          |feature
                Component:|Database access
                  Version:|680m95
                 Platform:|All
                      URL:|
               OS/Version:|Windows XP
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|none
              Assigned to:|msc
              Reported by:|vyho





------- Additional comments from [EMAIL PROTECTED] Fri Apr 29 05:31:09 -0700 
2005 -------
The Base application.

If you create a new table with a column that has a "number" type and
auto-increment, but not specify it as primary it. It will be primary key when
save the table.  Is this a desired behavior?  When you create a table with
auto-increment column and not specify any col as primary key, it will ask you if
you want to auto generate a primary key column.  If you answer yes, you'll see
an error:

Attempt to define a second primary key in statement [CREATE TABLE "Table2" ("ID"
INTEGER NOT NULL,"a" VARCHAR(50),"b" VARCHAR(50),"c" INTEGER IDENTITY, PRIMARY
KEY  ("ID")]

As you can see, a, b,c are the manually created columns with "c" being the
auto-increment.  "ID" is the autogenerated column.

So, shouldn't it detect that "c" already a primary key, and not asking for the
auto-creation of "ID"?

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to