On Tue, Jul 12, 2016 at 2:31 PM, Richard Hipp <d...@sqlite.org> wrote:

> On 7/12/16, Dominique Devienne <ddevie...@gmail.com> wrote:
> >
> > Is that normal or expected?
>
> The operation of REPLACE is defined here:
>
> https://www.sqlite.org/mark/lang_conflict.html?the+REPLACE+al*+current+row#mark


So the plural in "deletes pre-existing rows" explain that in my second
example,
with both the PK and NK where each point to different rows, both rows are
first
deleted, then the new row is inserted?

I've never used "or replace" (this question comes from a different usage of
SQLite than mine),
and I guess they didn't read or understand the implications of the doc
either.

Thanks. Makes sense now, even though I still find it surprising a bit.
Not what I'd naively assume without the benefit of reading the doc :) --DD
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to