details: https://code.openbravo.com/erp/devel/pi/rev/5e575bc53464 changeset: 33774:5e575bc53464 user: Asier Lostalé <asier.lostale <at> openbravo.com> date: Wed Apr 04 17:00:51 2018 +0200 summary: fixed bug 38271: pg connections set "PostgreSQL JDBC Driver" as app name
New jdbc sets it by default, changed it to "openbravo" diffstat: modules/org.openbravo.apachejdbcconnectionpool/src/org/openbravo/apachejdbcconnectionpool/JdbcExternalConnectionPool.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diffs (23 lines): diff -r f0156943cb5e -r 5e575bc53464 modules/org.openbravo.apachejdbcconnectionpool/src/org/openbravo/apachejdbcconnectionpool/JdbcExternalConnectionPool.java --- a/modules/org.openbravo.apachejdbcconnectionpool/src/org/openbravo/apachejdbcconnectionpool/JdbcExternalConnectionPool.java Tue Apr 03 15:53:31 2018 +0200 +++ b/modules/org.openbravo.apachejdbcconnectionpool/src/org/openbravo/apachejdbcconnectionpool/JdbcExternalConnectionPool.java Wed Apr 04 17:00:51 2018 +0200 @@ -11,7 +11,7 @@ * under the License. * The Original Code is Openbravo ERP. * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2014-2017 Openbravo SLU + * All portions are Copyright (C) 2014-2018 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ @@ -199,7 +199,9 @@ String rbdms = getStringProperty(props, "bbdd.rdbms", poolName); if ("POSTGRE".equals(rbdms)) { - poolProperties.setUrl(obUrl + "/" + sid); + String connectionURL = obUrl + "/" + sid; + connectionURL += (connectionURL.contains("?") ? "&" : "?") + "ApplicationName=openbravo"; + poolProperties.setUrl(connectionURL); } else { poolProperties.setUrl(obUrl); } ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits