Re: [JDBC] problem with new autocommit config parameter

From: snpe <snpe(at)snpe(dot)co(dot)yu>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsl-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] problem with new autocommit config parameter
Date: 2002-09-07 20:09:45
Message-ID: 200209072209.45352.snpe@snpe.co.yu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-jdbc

On Saturday 07 September 2002 09:12 pm, Joe Conway wrote:
> snpe wrote:
> >>Sure, you can do SHOW autocommit.
> >
> > I am interesting with JDBC driver.
> > When I make connection in base I want that driver find autocommit mode
> > (from postgresql.conf or call in backend) and set mode true or false
>
> You could make a call to current_setting in the backend.
>
> I don't know anything about the jdbc driver, but if it's written in C
> something like this should work:
>
> text *autocommit = DatumGetTextP(DirectFunctionCall1(current_setting,
> CStringGetDatum("autocommit")));
>
> Would this work?

Yes.But I don't know like call in JDBC.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-09-07 20:42:33 Re: Rule updates and PQcmdstatus() issue
Previous Message Joe Conway 2002-09-07 19:45:13 Re: [HACKERS] Please rename split(text,text,int) to splitpart

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2002-09-07 22:39:46 Re: [JDBC] problem with new autocommit config parameter
Previous Message Joe Conway 2002-09-07 19:12:36 Re: [JDBC] problem with new autocommit config parameter