BUG #13838: Problem in a table with integer primary key

From: ronan(dot)vargas(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #13838: Problem in a table with integer primary key
Date: 2015-12-29 17:03:52
Message-ID: 20151229170352.989.18565@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 13838
Logged by: Ronan Lima Vargas
Email address: ronan(dot)vargas(at)gmail(dot)com
PostgreSQL version: 9.1.14
Operating system: Windows
Description:

Hi,
I'm using pgAdmin 1.20 for running some queries in my database. The
following error is occurring:

- Given a table (CLIENT) with a integer key (CLIENT_COD), when I run the
query:

select * from client where client_cod = 1

It doesn't return ANY row.

But when I run:

select * from client where (cast client_cod as text) = '1'

It returns ONE row.

In this moment, for me it would be hard to change DB version in order to see
if it will be solved. I've already tried to run an UPDATE, setting the same
CLIENT_COD, but it didn't work.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Feike Steenbergen 2015-12-29 20:26:59 Re: BUG #13838: Problem in a table with integer primary key
Previous Message Alain Laporte 2015-12-29 15:56:04 Re: BUG #13837: Files in pg_committs not deleted