You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The column form REFERENCES p(code) checks the primary key of p instead of code #3153
alasql('CREATE TABLE p3 (id INT PRIMARY KEY, code INT UNIQUE)');alasql('INSERT INTO p3 VALUES (1, 70)');alasql('CREATE TABLE d3 (v INT REFERENCES p3(code))');alasql('INSERT INTO d3 VALUES (70)');alasql('INSERT INTO d3 VALUES (1)');
It rejects 70 with Foreign key "70" not found in table "p3" and inserts 1.
Activity