Re: Bug in pl/pgsql with hstore OR bug in pl/pgsql IF (text field is boolean?) - Mailing list pgsql-bugs

From hubert depesz lubaczewski
Subject Re: Bug in pl/pgsql with hstore OR bug in pl/pgsql IF (text field is boolean?)
Date
Msg-id 20081027141446.GA29664@depesz.com
Whole thread Raw
In response to Bug in pl/pgsql with hstore OR bug in pl/pgsql IF (text field is boolean?)  ("Oleg Serov" <serovov@gmail.com>)
Responses Re: Bug in pl/pgsql with hstore OR bug in pl/pgsql IF (text field is boolean?)  ("Oleg Serov" <serovov@gmail.com>)
List pgsql-bugs
On Mon, Oct 27, 2008 at 05:08:35PM +0300, Oleg Serov wrote:
> I can't get hstore value by key. i have very interesting error

the problem is that -> has very low priority, but you work with it
anyway:
# select tconvert('a', 'b')->'a' is null;
ERROR:  operator does not exist: hstore -> boolean
LINE 1: select tconvert('a', 'b')->'a' is null;
                                 ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
(depesz@[local]:5840) 15:14:03 [depesz]
# select (tconvert('a', 'b')->'a') is null;
 ?column?
----------
 f
(1 row)

depesz

--
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

pgsql-bugs by date:

Previous
From: "Oleg Serov"
Date:
Subject: Bug in pl/pgsql with hstore OR bug in pl/pgsql IF (text field is boolean?)
Next
From: Teodor Sigaev
Date:
Subject: Re: BUG #4491: regression in gist indexes