Re: [JDBC] problem with new autocommit config parameter

Поиск
Список
Период
Сортировка
От snpe
Тема Re: [JDBC] problem with new autocommit config parameter
Дата
Msg-id 200209072209.45352.snpe@snpe.co.yu
обсуждение исходный текст
Ответ на Re: [JDBC] problem with new autocommit config parameter  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
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.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: current_schemas()
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Rule updates and PQcmdstatus() issue