Re: Exception using dollar-quoted string

From: Kris Jurka <books(at)ejurka(dot)com>
To: Fichtenelch <hillebra(at)inf(dot)fu-berlin(dot)de>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Exception using dollar-quoted string
Date: 2006-03-24 21:28:13
Message-ID: Pine.BSO.4.63.0603241625540.32520@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2006-03-27 21:58:30 gcj has a lot of complaints about 8.1-405 release
Previous Message Fichtenelch 2006-03-24 21:14:32 Re: Exception using dollar-quoted string