pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: zn@dbml.dk
To: pgsql-bugs@postgresql.org
Subject: BUG #13972: jsonb_to_record cant map camelcase keys
Date: Thu, 18 Feb 2016 13:12:07 +0000
Message-ID: <20160218131207.2660.88690@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      13972
Logged by:          Jacob Zneider
Email address:      zn@dbml.dk
PostgreSQL version: 9.4.5
Operating system:   OS x 10.11.3
Description:        

Try the following:

select * from json_to_record('{"aA":1,"bB":[1,2,3],"c":"bar"}') as x(aA int,
bB text, c text)

first two columns will be empty.

select * from json_to_record('{"aa":1,"bb":[1,2,3],"c":"bar"}') as x(aA int,
bB text, c text)

All columns are mapped. 

select * from json_to_record('{"aa":1,"bb":[1,2,3],"c":"bar"}') as x(aa int,
bb text, c text)

All columns are mapped.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)  latest in thread

Message-ID: <20160218131207.2660.88690@wrigleys.postgresql.org>
Permalink:  ../20160218131207.2660.88690@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160218131207.2660.88690@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: zn@dbml.dk
  Subject: Re: BUG #13972: jsonb_to_record cant map camelcase keys
  In-Reply-To: <20160218131207.2660.88690@wrigleys.postgresql.org>
  References: <20160218131207.2660.88690@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox