Re: The same result for with SPACE and without SPACE

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: M Sarwar <sarwarmd02(at)outlook(dot)com>
Cc: "pgsql-advocacy(at)postgresql(dot)org" <pgsql-advocacy(at)postgresql(dot)org>
Subject: Re: The same result for with SPACE and without SPACE
Date: 2023-06-14 21:19:53
Message-ID: CAKFQuwazHio_fz1ZKO9WSw5Q6hD9BVJJmf_Lbk06R2uduswUQg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-advocacy

As noted on this page, the -general list is a much more appropriate place
to send this question. Advocacy, not even close.
https://www.postgresql.org/list/

On Wed, Jun 14, 2023 at 2:08 PM M Sarwar <sarwarmd02(at)outlook(dot)com> wrote:

>
> Please note in SQL-1 that test_number = 'TEST4P20 ' has a space and in
> SQL-2 there is no space test_number = 'TEST4P20' has no space.
>
> Is it not a bug?
>

Doubtful. You haven't provided actual data types here but it seems you are
using character instead of text. Your desired behavior is provided by the
text data type.

David J.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message M Sarwar 2023-06-14 21:51:06 The same result for with SPACE and without SPACE
Previous Message M Sarwar 2023-06-14 21:07:50 The same result for with SPACE and without SPACE

Browse pgsql-advocacy by date

  From Date Subject
Next Message M Sarwar 2023-06-14 21:51:06 The same result for with SPACE and without SPACE
Previous Message M Sarwar 2023-06-14 21:07:50 The same result for with SPACE and without SPACE