From 17aaeda68c8f59351c3d732437eb5f280ea2d7e2 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 9 Jan 2009 22:11:44 +0000 Subject: [PATCH] [ 2495069 ] PackIn SQLStatement fails on PostgreSQL https://sourceforge.net/tracker/index.php?func=detail&aid=2495069&group_id=176962&atid=879332 Backward compatibility with old packages developed by hand --- .../adempiere/pipo/handler/SQLStatementElementHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/base/src/org/adempiere/pipo/handler/SQLStatementElementHandler.java b/base/src/org/adempiere/pipo/handler/SQLStatementElementHandler.java index bf52bfce6c..58decdf3bc 100644 --- a/base/src/org/adempiere/pipo/handler/SQLStatementElementHandler.java +++ b/base/src/org/adempiere/pipo/handler/SQLStatementElementHandler.java @@ -56,7 +56,11 @@ public class SQLStatementElementHandler extends AbstractElementHandler { pstmt.executeUpdate(); log.info("Executed SQL Statement for Oracle: "+ atts.getValue("statement")); } - else if(DB.isPostgreSQL() == true && DBType.equals("Postgres")){ + else if ( DB.isPostgreSQL() + && ( DBType.equals("Postgres") + || DBType.equals("PostgreSQL") // backward compatibility with old packages developed by hand + ) + ) { // Avoid convert layer - command specific for postgresql // // pstmt = DB.prepareStatement(sql, null);