Re: Exception using dollar-quoted string - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Exception using dollar-quoted string
Date
Msg-id Pine.BSO.4.63.0603241625540.32520@leary.csoft.net
Whole thread Raw
In response to Re: Exception using dollar-quoted string  ("Fichtenelch" <hillebra@inf.fu-berlin.de>)
List 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


pgsql-jdbc by date:

Previous
From: "Fichtenelch"
Date:
Subject: Re: Exception using dollar-quoted string
Next
From: Tom Lane
Date:
Subject: gcj has a lot of complaints about 8.1-405 release