Skip to content

In a where clause, the equals operator doesn't work well for basic queries. #704

@DavidPerezIngeniero

Description

@DavidPerezIngeniero

11.7-alpine version exhibits this strange behaviour:

# select '[' || lis_lis || ']' from imalis where lis_lis like 'PME_USU_00'; 
   ?column?   
--------------
 [PME_USU_00]
(1 row)

whereas:

# select '[' || lis_lis || ']' from imalis where lis_lis = 'PME_USU_00'; 
 ?column? 
----------
(0 rows)

Non-Docker Postgres 11 shows consistent results with exactly the same data (rsync'ed), i.e., 1 row of results for both selects.

lis_lis is a varying char(20) column that is the primary key of the table.
Using:

  • amd64
  • Docker version 19.03.6-ce, build 369ce74
  • Host is Amazon Linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions