
From rabaker@csc.com Tue May 28 12:07:33 1996
Date: Tue, 28 May 1996 02:42:25 -0500
From: R Baker <rabaker@csc.com>
To: msql-list@bunyip.com
Subject: [mSQL] "delete from table where col=value1 or col=value2 or col=value3" is unreliable

I have noticed that delete operations of the form "delete from table
where col=value1 or col=value2 or col=value3" are unreliable.
In the following test case, the delete operation fails to delete all
four matching records.

test case:

create table test (id int primary key)\g
insert into test (id) values(1)\g
insert into test (id) values(2)\g
insert into test (id) values(3)\g
insert into test (id) values(4)\g
delete from test where id=1 or id=2 or id=3 or id=4\g

this should delete all four records but record id=4 still exists!
However "delete from test where id=1 or id=2 or id=3 or id=4 or id=4"
successfully deletes all four records.

msql 1.0.14 on Solaris 2.5
--------------------------------------------------------------------------
To remove yourself from the Mini SQL mailing list send a message containing
"unsubscribe" to msql-list-request@bunyip.com.  Send a message containing
"info msql-list" to majordomo@bunyip.com for info on monthly archives of
the list. For more help, mail owner-msql-list@bunyip.com NOT the msql-list!
