Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group