Summary: | EDITING: TABLE FIELD PROPERTY AUTOVALUE CAN NOT BE SET IN SPLIT DATABASE | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | guifan |
Component: | Base | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | major | ||
Priority: | medium | ||
Version: | 3.6.4.3 release | ||
Hardware: | Other | ||
OS: | Windows (All) | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: |
Description
guifan
2013-01-16 13:09:19 UTC
It's an old problem since the beginning of LO. I have reported this at https://bugs.freedesktop.org/show_bug.cgi?id=45947 The SQL-Code, which is produced by LO, is wrong, when you set the right code to Edit → Database → Advanced Settings → Generated Values The auto-increment statement must be GENERATED BY DEFAULT AS IDENTITY(START WITH 0) but LO will produce "NOT NULL GENERATED BY DEFAULT AS IDENTITY(START WITH 0)" and fails. You could only add a automatic generated field by changing the table you have created without increment value: Tools → SQL: ALTER TABLE "table" ALTER COLUMN "ID" INT GENERATED BY DEFAULT AS IDENTITY(START WITH 0) I set this report as duplicate of the elder report. *** This bug has been marked as a duplicate of bug 45947 *** |