pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannes Erven <hannes@erven.at>
To: pgsql-jdbc@postgresql.org
Subject: Re: Unable to create triggers via jdbc. Tried so many anythings. Please help.
Date: Mon, 16 Jun 2014 17:11:45 +0200
Message-ID: <539F0931.4070807@erven.at> (raw)
In-Reply-To: <CAFcAjPRpFc44Obp9RHK36f==APK9Rt95kkM71oc5tgoXR+oraw@mail.gmail.com>
References: <CAFcAjPRpFc44Obp9RHK36f==APK9Rt95kkM71oc5tgoXR+oraw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Hi,


 > I am unable to create functions via postgres jdbc. It seems that the
 > driver strips out newlines and semi-colons, resulting in syntax
 > errors rejected by the db.

Since this appears to be an ANT task and $ has a special meaning for it, 
have you tried setting "expandproperties" to "false"?
http://ant.apache.org/manual/Tasks/sql.html

Maybe there is also some other way to tell ANT to treat that $$ signs as 
verbatim (perhaps 
http://stackoverflow.com/questions/2631082/escaping-a-dollar-in-the-middle-of-an-ant-property 
).


-hannes


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (4+ messages)

Message-ID: <539F0931.4070807@erven.at>
Permalink:  ../539F0931.4070807@erven.at/
Also on:    postgresql.org/message-id/539F0931.4070807@erven.at

 · 

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: hannes@erven.at
  Subject: Re: Unable to create triggers via jdbc. Tried so many anythings. Please help.
  In-Reply-To: <539F0931.4070807@erven.at>
  References: <CAFcAjPRpFc44Obp9RHK36f==APK9Rt95kkM71oc5tgoXR+oraw@mail.gmail.com> <539F0931.4070807@erven.at>

* 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