Hi,

When creating a foreign key H2 does not check that the types match.

Test case:
CREATE TABLE T1(PK VARCHAR PRIMARY KEY);
CREATE TABLE T2(FK BIGINT REFERENCES T1);

At this point T2 won't accept any rows.

A lovely summer to you all!

- Rami

--
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 http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to