From: | Dave Cramer <davecramer(at)postgres(dot)rocks> |
---|---|
To: | Celinio Fer <celfersup(at)yahoo(dot)com> |
Cc: | pgsql-docs(at)lists(dot)postgresql(dot)org |
Subject: | Re: Default value for the defaultAutoCommit property |
Date: | 2021-06-03 10:31:41 |
Message-ID: | CADK3HHJU+V8+yK167j-4cxb7sKrvH1zcLeyfee-Qu0AG9tc-cg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
Good catch.
Thanks, I will fix that.
Dave Cramer
www.postgres.rocks
On Thu, 3 Jun 2021 at 03:49, Celinio Fer <celfersup(at)yahoo(dot)com> wrote:
> Hi,
> I wonder if the documentation for the JDBC PostgreSQL driver is up to date
> :
> https://jdbc.postgresql.org/documentation/head/ds-cpds.html#ds-cpds-props
> It is written that the default value for the defaultAutoCommit property
> is false.
>
> However in the source code, the default value is true :
>
> https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/ds/PGConnectionPoolDataSource.java
>
> private boolean defaultAutoCommit = true;
> ...
> /**
> * Gets whether connections supplied by this pool will have autoCommit
> turned on by default. The
> * default value is {(at)code true}, so that autoCommit will be turned on
> by default.
> *
> * @return true if connections supplied by this pool will have autoCommit
> */
> public boolean isDefaultAutoCommit() {
> return defaultAutoCommit;
> }
>
> Did i miss something ?
> Thanks
> Celinio
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Emre Hasegeli | 2021-06-03 12:57:24 | Re: Note that ALTER TABLE cannot alter generated stored columns |
Previous Message | Celinio Fer | 2021-06-03 07:49:21 | Default value for the defaultAutoCommit property |