[ 
https://issues.apache.org/jira/browse/OPENJPA-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Struberg resolved OPENJPA-2860.
------------------------------------
    Resolution: Fixed

{{supportsQueryTimeout}} is now enabled by default for PostgreSQL 10 and later.
You can manually configure (disable) this by setting the following property in 
a persistence-unit in your persistence.xml:
{noformat}
<property name="openjpa.jdbc.DBDictionary" 
value="(supportsQueryTimeout=false)"/>
{noformat}

> [Postgres] use setQueryTimeout for PostgreSQL >= 10
> ---------------------------------------------------
>
>                 Key: OPENJPA-2860
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2860
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 3.1.2
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>            Priority: Major
>             Fix For: 3.1.3
>
>
> PostgreSQL JDBC driver did not support {{setQueryTimeout}} properly for a 
> quite long time. But since v10 it is working fine. We can thus enable 
> {{DBDictionary#supportsQueryTimeout}} for {{PostgresDictionary}} and only 
> disable it if majorVersion < 10.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to