pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Fichtenelch <hillebra@inf.fu-berlin.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Exception using dollar-quoted string
Date: Fri, 24 Mar 2006 16:28:13 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0603241625540.32520@leary.csoft.net> (raw)
In-Reply-To: <000901c64f87$f28130d0$1530a8c0@hgworkstation0>
References: <000901c64f87$f28130d0$1530a8c0@hgworkstation0>



On Fri, 24 Mar 2006, Fichtenelch wrote:

> And how are sql commands like
>
> INSERT INTO table VALUES ($t$some text$t$)
>
> passed to the database? In that case dollar quotes are working
> definitely.
>

The JDBC driver executes multiple queries within the same string 
(Statement.execute("SELECT 1; SELECT 2")) by splitting them on the 
semicolon and executing them separately.  So the difference is that your 
plpgsql function body has semicolons while your simple example does not.

Kris Jurka




view thread (5+ messages)

Message-ID: <Pine.BSO.4.63.0603241625540.32520@leary.csoft.net>
Permalink:  ../Pine.BSO.4.63.0603241625540.32520@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.63.0603241625540.32520@leary.csoft.net

 · 

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-jdbc@postgresql.org
  Cc: books@ejurka.com, hillebra@inf.fu-berlin.de
  Subject: Re: Exception using dollar-quoted string
  In-Reply-To: <Pine.BSO.4.63.0603241625540.32520@leary.csoft.net>
  References: <000901c64f87$f28130d0$1530a8c0@hgworkstation0> <Pine.BSO.4.63.0603241625540.32520@leary.csoft.net>

* 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