Re: Unable to create triggers via jdbc. Tried so many anythings. Please help.

From: Hannes Erven <hannes(at)erven(dot)at>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Unable to create triggers via jdbc. Tried so many anythings. Please help.
Date: 2014-06-16 15:11:45
Message-ID: 539F0931.4070807@erven.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message mkrogemann 2014-06-18 14:45:31 BUG #10691: Wrong license URL
Previous Message Herouth Maoz 2014-06-16 14:49:46 Re: Unable to create triggers via jdbc. Tried so many anythings. Please help.