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
Date: 2016-11-28 15:34:23 +0100
From: Dean De Leo <>
To: SQL devs <>
Version: -- development
Last updated: 2020-09-21 20:32:54 +0200
Comment 24724
Date: 2016-11-28 15:34:23 +0100
From: Dean De Leo <>
User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.100 Safari/537.36
Build Identifier:
Performing an INSERT seems to violate the foreign key constraints that refer the same table, where the referred key is also the same inserted key. This is inconsistent with the behaviour of disabling the foreign key, inserting the data, and eventually re-enabling the foreign key constraint. In this latter case the INSERT statements succeed.
AFAIK any foreign key constraint should be checked after the update has taken place, so that the former statement should be allowed.
Reproducible: Always
Steps to Reproduce:
See attached repro
Actual Results:
The INSERT statement is rejected due to the foreign key being violated
Expected Results:
The INSERT statement should be allowed
Comment 24725
Date: 2016-11-28 15:35:09 +0100
From: Dean De Leo <>
Date: 2016-11-28 15:34:23 +0100
From: Dean De Leo <>
To: SQL devs <>
Version: -- development
Last updated: 2020-09-21 20:32:54 +0200
Comment 24724
Date: 2016-11-28 15:34:23 +0100
From: Dean De Leo <>
User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.100 Safari/537.36
Build Identifier:
Performing an INSERT seems to violate the foreign key constraints that refer the same table, where the referred key is also the same inserted key. This is inconsistent with the behaviour of disabling the foreign key, inserting the data, and eventually re-enabling the foreign key constraint. In this latter case the INSERT statements succeed.
AFAIK any foreign key constraint should be checked after the update has taken place, so that the former statement should be allowed.
Reproducible: Always
Steps to Reproduce:
Actual Results:
The INSERT statement is rejected due to the foreign key being violated
Expected Results:
The INSERT statement should be allowed
Comment 24725
Date: 2016-11-28 15:35:09 +0100
From: Dean De Leo <>
Created attachment 516
repro.sql
Comment 25146
Date: 2017-03-09 17:18:20 +0100
From: MonetDB Mercurial Repository <>
Changeset 73b379ba7970 made by Martin van Dinther martin.van.dinther@monetdbsolutions.com in the MonetDB repo, refers to this bug.
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=73b379ba7970
Changeset description:
Comment 28101
Date: 2020-09-21 20:32:54 +0200
From: @njnes
*** Bug #6132 has been marked as a duplicate of this bug. ***
The text was updated successfully, but these errors were encountered: