Text cast problem

Поиск
Список
Период
Сортировка
От Volkmar Herbst
Тема Text cast problem
Дата
Msg-id E5F311726E664432BEB109D30F3D3C26@NotebookVolkmar
обсуждение исходный текст
Ответы Re: Text cast problem
Список pgsql-sql

Dear all-

I encountered the following problem:

 

select * from parcel where number = '255 '

gives me 1 row but

 

select * from parcel where number = '255 ' ::text

does give me 0 rows. The cast removes the trailing empty character.

 

Why is that? Unfortunately the statements are generated (NPGSQL) and I can’t change the way they are generated. What can I do? Any suggestions highly welcomed!

 

Volkmar

 

В списке pgsql-sql по дате отправления: