pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: raf <raf@raf.org>
To: pgsql-general@lists.postgresql.org
Subject: Re: Inconsistent compilation error
Date: Wed, 25 Apr 2018 21:54:01 +1000
Message-ID: <20180425115401.haap5gwtgww5iw5g@raf.org> (raw)
In-Reply-To: <CAKFQuwa-ZwPKPAuKrEUQsgJbywYjRqsQXTBKVq_i3Fe-iDDibw@mail.gmail.com>
References: <20180419010228.jcogqkeu2b7bxh2q@raf.org>
	<CANu8FizJ4U+CxLcJMBzy37aHawjqYBJ9JwPRfs2X3wEuce3SzQ@mail.gmail.com>
	<CAKJS1f9HR8dKd4o3zHPwQtWM1DwP4WxXAnjT34xotTmBeKsntg@mail.gmail.com>
	<CANu8Fizyk-Q_sHdy6F9vFZk-hcednx-paP_woj=WgKjkuDbXOg@mail.gmail.com>
	<CAKFQuwa-ZwPKPAuKrEUQsgJbywYjRqsQXTBKVq_i3Fe-iDDibw@mail.gmail.com>

David G. Johnston wrote:

> On Wed, Apr 18, 2018 at 7:04 PM, Melvin Davidson <melvin6925@gmail.com>
> wrote:
> 
> >
> > Normally, literals are inside the first quotes. IE: raise notice '
> > blah_history.original_id' %', r;
> >
> 
> ​But a compiler doesn't care about human concepts like "normally" - it just
> cares about "syntactically correct" and as David and Tom observe the
> original post as visually observed is correct.  Which leads one to think
> that reality and the original post somehow don't match, or as Tom said what
> the server sees and what is sent end up being different (client encoding
> issues or some such).
> 
> And pretty sure "r" being NULL just puts an empty string where the % is.
> 
> David J.

passing a null value to raise notice outputs it as the string "NULL".





view thread (15+ messages)  latest in thread

Message-ID: <20180425115401.haap5gwtgww5iw5g@raf.org>
Permalink:  ../20180425115401.haap5gwtgww5iw5g@raf.org/
Also on:    postgresql.org/message-id/20180425115401.haap5gwtgww5iw5g@raf.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-general@postgresql.org
  Cc: raf@raf.org
  Subject: Re: Inconsistent compilation error
  In-Reply-To: <20180425115401.haap5gwtgww5iw5g@raf.org>
  References: <20180419010228.jcogqkeu2b7bxh2q@raf.org> <CANu8FizJ4U+CxLcJMBzy37aHawjqYBJ9JwPRfs2X3wEuce3SzQ@mail.gmail.com> <CAKJS1f9HR8dKd4o3zHPwQtWM1DwP4WxXAnjT34xotTmBeKsntg@mail.gmail.com> <CANu8Fizyk-Q_sHdy6F9vFZk-hcednx-paP_woj=WgKjkuDbXOg@mail.gmail.com> <CAKFQuwa-ZwPKPAuKrEUQsgJbywYjRqsQXTBKVq_i3Fe-iDDibw@mail.gmail.com> <20180425115401.haap5gwtgww5iw5g@raf.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