Re: Simple Query Doesn't Even with Data - Mailing list pgsql-general

From Ken Tanzer
Subject Re: Simple Query Doesn't Even with Data
Date
Msg-id CAD3a31V=-_HP=KZaiU2qvqKZQGEO-e9Mg4MtoP=SW4itmjZ4tQ@mail.gmail.com
Whole thread Raw
In response to Simple Query Doesn't Even with Data  (Scott Macri <Scott@BITSnBYTES.io>)
List pgsql-general
On Thu, Mar 10, 2022 at 12:12 AM Scott Macri <Scott@bitsnbytes.io> wrote:

I've verified the data a 100 times and am totally perplexed.  Thanks.

SELECT *
FROM public.map_table
WHERE company_letters = 'abcdefg';


Not sure what kinds of verification you did, but did you check to make sure that there's no trailing whitespace?

What do you see for that row if you run this query?

SELECT company_letters,length(company_letters),company_letters='abcdefg',trim(company_letters)='abcdefg' FROM public.map_table;

 

--
AGENCY Software  
A Free Software data system
By and for non-profits
(253) 245-3801

learn more about AGENCY or
follow the discussion.

pgsql-general by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: Simple Query Doesn't Even with Data
Next
From: Luca Ferrari
Date:
Subject: primary_conninfo and restore_command ?