On 11/17/15, 3:35 PM, "sqlite-users-bounces at mailinglists.sqlite.org on behalf of Rolf Ade" <sqlite-users-bounces at mailinglists.sqlite.org on behalf of rolf at pointsman.de> wrote:
> >Richard Hipp <drh at sqlite.org> writes: >> On 11/17/15, Yuri <yuri at rawbw.com> wrote: >>> This message always leaves the user wondering: "Which constraint?" >>> >>> How hard is it to add this information to the message? Is this a matter >>> of memorizing the ID of the constraint, and then printing its name in >>> the message? >>> >> >>... >> To provide information about which constraint(s) failed, it would be >> necessary to have a bag (a list or hash table or an associative array) >> of all the constraints that have been violated and then remove >> elements from the bag as constraints are resolved. What if it saved just the first constraint to fail? That would allow the problem to be fixed one constraint at a time. Or is that still hard to do given the current implementation? Will