Default value for the defaultAutoCommit property

Поиск
Список
Период
Сортировка
От Celinio Fer
Тема Default value for the defaultAutoCommit property
Дата
Msg-id 1591471729.4432635.1622706561235@mail.yahoo.com
обсуждение исходный текст
Ответы Re: Default value for the defaultAutoCommit property  (Dave Cramer <davecramer@postgres.rocks>)
Список pgsql-docs
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 {@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



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Simplify COMMENT and SECURITY LABEL documentation
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Default value for the defaultAutoCommit property