Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WwYZo-0007NQ-UZ for pgsql-jdbc@arkaria.postgresql.org; Mon, 16 Jun 2014 15:12:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WwYZo-0007uN-Ez for pgsql-jdbc@arkaria.postgresql.org; Mon, 16 Jun 2014 15:12:04 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WwYZm-0007uC-Eh for pgsql-jdbc@postgresql.org; Mon, 16 Jun 2014 15:12:02 +0000 Received: from chello080108195078.3.13.vie.surfer.at ([80.108.195.78] helo=margarita.erven.at) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WwYZe-0001WG-LP for pgsql-jdbc@postgresql.org; Mon, 16 Jun 2014 15:12:00 +0000 Received: from [192.168.27.100] (unknown [192.168.27.100]) by margarita.erven.at (Postfix) with ESMTPSA id EF0B67700058 for ; Mon, 16 Jun 2014 17:11:48 +0200 (CEST) Message-ID: <539F0931.4070807@erven.at> Date: Mon, 16 Jun 2014 17:11:45 +0200 From: Hannes Erven User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Unable to create triggers via jdbc. Tried so many anythings. Please help. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.3 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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