BUG #3518: ERROR: IN types character varying and integer cannot be matched - Mailing list pgsql-bugs

From Tomasz Kawczynski
Subject BUG #3518: ERROR: IN types character varying and integer cannot be matched
Date
Msg-id 200708061339.l76Ddkjo052645@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #3518: ERROR: IN types character varying and integer cannot be matched
List pgsql-bugs
The following bug has been logged online:

Bug reference:      3518
Logged by:          Tomasz Kawczynski
Email address:      sober.pl@gmail.com
PostgreSQL version: 8.2.4
Operating system:   Linux Gentoo
Description:        ERROR: IN types character varying and integer cannot be
matched
Details:

Hello everyone,

After

SELECT * FROM s_skladnik WHERE kod IN (902,902)

kod character(3)

i get error message

ERROR: IN types character varying and integer cannot be matched

whitch is ok (ive read about this restriction in 8.2.x)

but why after

SELECT * FROM s_skladnik WHERE kod IN (902)
or
SELECT * FROM s_skladnik WHERE kod = 902

I dont get error but query gives me correct result ?

pgsql-bugs by date:

Previous
From: Dirk Tilger
Date:
Subject: Re: BUG #3516: Incomplete #ifdef statement in s_lock.h
Next
From: "Mouhamadou DIA"
Date:
Subject: BUG #3519: Postgres takes the wrong query plan resulting in performance issues