Text cast problem - Mailing list pgsql-sql

From Volkmar Herbst
Subject Text cast problem
Date
Msg-id E5F311726E664432BEB109D30F3D3C26@NotebookVolkmar
Whole thread Raw
Responses Re: Text cast problem  (Adrian Klaver <aklaver@comcast.net>)
List pgsql-sql
<div class="Section1"><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">Dear all- </span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB"
style="font-size:
10.0pt;font-family:Arial">I encountered the following problem:</span></font><p class="MsoNormal"><font face="Arial"
size="2"><spanlang="EN-GB" style="font-size: 
10.0pt;font-family:Arial"> </span></font><p class="MsoNormal"><font face="Times New Roman" size="3"><span lang="EN-GB"
style="font-size:12.0pt">select* from parcel where number = '255 ' </span></font><p class="MsoNormal"><font face="Times
NewRoman" size="3"><span lang="EN-GB" style="font-size:12.0pt">gives me 1 row but </span></font><p
class="MsoNormal"><fontface="Times New Roman" size="3"><span lang="EN-GB" style="font-size:12.0pt"> </span></font><p
class="MsoNormal"><fontface="Times New Roman" size="3"><span lang="EN-GB" style="font-size:12.0pt">select * from parcel
wherenumber = '255 ' ::text</span></font><p class="MsoNormal"><font face="Times New Roman" size="3"><span lang="EN-GB"
style="font-size:12.0pt">doesgive me 0 rows. The cast removes the trailing empty character.</span></font><p
class="MsoNormal"><fontface="Times New Roman" size="3"><span lang="EN-GB" style="font-size:12.0pt"> </span></font><p
class="MsoNormal"><fontface="Times New Roman" size="3"><span lang="EN-GB" style="font-size:12.0pt">Why is that?
Unfortunatelythe statements are generated (NPGSQL) and I can’t change the way they are generated. What can I do? Any
suggestionshighly welcomed!</span></font><p class="MsoNormal"><font face="Times New Roman" size="3"><span lang="EN-GB"
style="font-size:12.0pt"> </span></font><pclass="MsoNormal"><font face="Times New Roman" size="3"><span lang="EN-GB"
style="font-size:12.0pt">Volkmar</span></font><pclass="MsoNormal"><font face="Times New Roman" size="3"><span
lang="EN-GB"style="font-size:12.0pt"> </span></font></div> 

pgsql-sql by date:

Previous
From: "Tena Sakai"
Date:
Subject: Re: [HACKERS] How would I get rid of trailing blank line?
Next
From: Adrian Klaver
Date:
Subject: Re: Text cast problem