LIKE 'bla%'

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема LIKE 'bla%'
Дата
Msg-id 200009020918.e829IIh55600@hub.org
обсуждение исходный текст
Ответы Re: LIKE 'bla%'  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: select on macaddr field type yields incorrect response
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: PG still fussy to compile on Solaris + GCC, may still need Sun ld