Re: Creating a database using ant

From: Jan de Visser <jdevisser(at)digitalfairway(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Creating a database using ant
Date: 2005-11-21 05:19:11
Message-ID: 200511210019.11559.jdevisser@digitalfairway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Sunday 20 November 2005 23:24, Nathan McEachen wrote:
> Although autocommit is false, it looks like the sql script is still
> executing within a transaction.  Does anyone know a workaround?

You got it the wrong way around. autocommit=false gets you a transaction, i.e.
statements are *not* automatically committed when you have that set. You want
autocommit=true. I've done it (creating databases in ant) and it works...

JdV!!

--
--------------------------------------------------------------
Jan de Visser                     jdevisser(at)digitalfairway(dot)com

                Baruk Khazad! Khazad ai-menu!
--------------------------------------------------------------

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jojo Paderes 2005-11-21 05:56:16 Re: passing array as parameters to PrepareStatement or callable statement.[setObject() or setArray()]
Previous Message Tjioe Ai Xin 2005-11-21 04:39:15 Re: Problem when upgrade PostgreSQL 7.3.3 to PostgreSQL 8.0.3