Implement statement timeout support for PostgreSQL

This commit is contained in:
Heng Sin Low 2011-02-07 10:26:06 +08:00
parent ce2d57585f
commit acebf0625a
1 changed files with 6 additions and 1 deletions

View File

@ -878,8 +878,13 @@ public class DB_PostgreSQL implements AdempiereDatabase
return true; return true;
} }
/**
* Postgresql jdbc driver doesn't support setQueryTimeout, query/statement timeout is
* implemented using the "SET LOCAL statement_timeout TO" statement.
* @return true
*/
public boolean isQueryTimeoutSupported() { public boolean isQueryTimeoutSupported() {
return false; return true;
} }
/** /**