![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Howdy folks, *HJELP!* While experimenting with the a relationship problem , I think I might have fudged the database. I've set up a 1:1 relationship between two tables, cascading updates and so on. Now I can't access anything anymore. This is the error I get: Quote: SQL-Status: S1000 Fehler-Code: -78 error in script file line: 10 Column types do not matchmissing DEFAULT value on column HH-ID in statement [CREATE CACHED TABLE "Boxen"("HH-ID" INTEGER NOT NULL PRIMARY KEY,"Tekguy" VARCHAR(50),"Box-ID" INTEGER,CONSTRAINT SYS_FK_113 FOREIGN KEY("HH-ID") REFERENCES "Haushalte"("HH-ID") ON DELETE SET DEFAULT ON UPDATE CASCADE] |
|
All I want to do now is undo this relation, but I can't even open that window without that error popping up. What can I do now? I would consider deleting one of the two tables (although I can't seem to access anything but the forms view...) if that would help... *HJELP* |
#3
| |||
| |||
|
|
Berti Ferranti wrote: Howdy folks, *HJELP!* While experimenting with the a relationship problem , I think I might have fudged the database. I've set up a 1:1 relationship between two tables, cascading updates and so on. Now I can't access anything anymore. This is the error I get: Quote: SQL-Status: S1000 Fehler-Code: -78 error in script file line: 10 Column types do not matchmissing DEFAULT value on column HH-ID in statement [CREATE CACHED TABLE "Boxen"("HH-ID" INTEGER NOT NULL PRIMARY KEY,"Tekguy" VARCHAR(50),"Box-ID" INTEGER,CONSTRAINT SYS_FK_113 FOREIGN KEY("HH-ID") REFERENCES "Haushalte"("HH-ID") ON DELETE SET DEFAULT ON UPDATE CASCADE] The error message you posted is a little mangled, but it seems to be complaining about the ON DELETE SET DEFAULT on the FOREIGN KEY constraint. "HH-ID" doesn't define a default value. However, it doesn't make much sense to use SET DEFAULT on a column that is also a primary key. This would likely cause duplicate values for "HH-ID", breaking the PRIMARY KEY uniqueness constraint. |
|
All I want to do now is undo this relation, but I can't even open that window without that error popping up. What can I do now? I would consider deleting one of the two tables (although I can't seem to access anything but the forms view...) if that would help... *HJELP* I can't 'hjelp' you with opening that window ... whatever that means. |
#4
| |||
| |||
|
|
Lee Fesperman schrieb: Berti Ferranti wrote: error in script file line: 10 Column types do not matchmissing DEFAULT value on column HH-ID in statement [CREATE CACHED TABLE "Boxen"("HH-ID" INTEGER NOT NULL PRIMARY KEY,"Tekguy" VARCHAR(50),"Box-ID" INTEGER,CONSTRAINT SYS_FK_113 FOREIGN KEY("HH-ID") REFERENCES "Haushalte"("HH-ID") ON DELETE SET DEFAULT ON UPDATE CASCADE] The error message you posted is a little mangled, but it seems to be complaining about the ON DELETE SET DEFAULT on the FOREIGN KEY constraint. "HH-ID" doesn't define a default value. However, it doesn't make much sense to use SET DEFAULT on a column that is also a primary key. This would likely cause duplicate values for "HH-ID", breaking the PRIMARY KEY uniqueness constraint. That's odd, since I didn't set a default for household ID. At least not in the main table... The error message is an exact copy&paste of OOo's output. |
|
All I want to do now is undo this relation, but I can't even open that window without that error popping up. What can I do now? I would consider deleting one of the two tables (although I can't seem to access anything but the forms view...) if that would help... *HJELP* I can't 'hjelp' you with opening that window ... whatever that means. It means I need to undo creating that relationship despite the fact that OOo refuses me me a connection to the database with the error above. Any way to directly influence the script? |
![]() |
| Thread Tools | |
| Display Modes | |
| |