Are you sure you actually have a row with revision_id = '3' in table REVISION?

Because this is working for me on 1.4.191

CREATE TABLE IF NOT EXISTS REVISION (
  revision_id VARCHAR2,
  PRIMARY KEY (revision_id)
);
CREATE TABLE IF NOT EXISTS REVISION_FILE (
  revision_id VARCHAR2 REFERENCES REVISION (revision_id),
  file_name       VARCHAR2,
  PRIMARY KEY (revision_id, file_name)
);
insert into REVISION(REVISION_ID) values ('1');
insert into REVISION_FILE(REVISION_ID, FILE_NAME) values ('1', '1');
insert into REVISION(REVISION_ID) values ('2');
insert into REVISION_FILE(REVISION_ID, FILE_NAME) values ('2', '2')
insert into REVISION(REVISION_ID) values ('3');
insert into REVISION_FILE(REVISION_ID, FILE_NAME) values ('3', '2');

--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to