LIKE 'bla%' - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject LIKE 'bla%'
Date
Msg-id 200009020918.e829IIh55600@hub.org
Whole thread Raw
Responses Re: LIKE 'bla%'
List pgsql-bugs
Henrik Steffen (steffen@city-map.de) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
LIKE 'bla%'

Long Description
I just wanted to delete a record from a table, using

DELETE FROM MYTABLE WHERE NAME LIKE 'Ant%';

knowing that there existed only one record with 'Anton' as name.
However, the code above delivered 'DELETE 0'

Then I did this:
DELETE FROM MYTABLE WHERE NAME LIKE 'Anto%';
which gave 'DELETE 1'

Isn't this strange?


Sample Code
DELETE FROM MYTABLE WHERE NAME LIKE 'Ant%';
<=>
DELETE FROM MYTABLE WHERE NAME LIKE 'Anto%';


No file was uploaded with this report

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: select on macaddr field type yields incorrect response
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: PG still fussy to compile on Solaris + GCC, may still need Sun ld