pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: T L <tinlyx@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: printing JsonbPair values of input JSONB on server side?
Date: Mon, 18 Mar 2019 23:11:47 +0000
Message-ID: <87ftrjye4r.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CAOb=C0ebwj_BfLQRHKDOJQRgRPbYt6ktqtEgM_da3Y9HmB921w@mail.gmail.com>
References: <CAOb=C0c=iuYXAL-b-19t-F0XcPBQOin+vReOqSa2BYminvg6Zw@mail.gmail.com>
	<87r2b4x7pg.fsf@news-spur.riddles.org.uk>
	<CAOb=C0dQJwL-=uv3Q61irz+2meTVrva6ifmARXCtu5XqJtC7HA@mail.gmail.com>
	<87k1gvyizo.fsf@news-spur.riddles.org.uk>
	<CAOb=C0ebwj_BfLQRHKDOJQRgRPbYt6ktqtEgM_da3Y9HmB921w@mail.gmail.com>

>>>>> "T" == T L <tinlyx@gmail.com> writes:

 T> Below is my test. It prints a strange character instead of "a"; and
 T> says that the value isn't numeric.

Yeah, there's plenty else wrong with your code.

Did you look at how JsonbToCStringWorker does it? that looks like the
best example I can find on a quick scan.

-- 
Andrew (irc:RhodiumToad)




view thread (13+ messages)  latest in thread

Message-ID: <87ftrjye4r.fsf@news-spur.riddles.org.uk>
Permalink:  ../87ftrjye4r.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87ftrjye4r.fsf@news-spur.riddles.org.uk

 · 

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-general@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, tinlyx@gmail.com
  Subject: Re: printing JsonbPair values of input JSONB on server side?
  In-Reply-To: <87ftrjye4r.fsf@news-spur.riddles.org.uk>
  References: <CAOb=C0c=iuYXAL-b-19t-F0XcPBQOin+vReOqSa2BYminvg6Zw@mail.gmail.com> <87r2b4x7pg.fsf@news-spur.riddles.org.uk> <CAOb=C0dQJwL-=uv3Q61irz+2meTVrva6ifmARXCtu5XqJtC7HA@mail.gmail.com> <87k1gvyizo.fsf@news-spur.riddles.org.uk> <CAOb=C0ebwj_BfLQRHKDOJQRgRPbYt6ktqtEgM_da3Y9HmB921w@mail.gmail.com> <87ftrjye4r.fsf@news-spur.riddles.org.uk>

* 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