[ 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
This commit is contained in:
Carlos Ruiz 2009-01-09 22:11:44 +00:00
parent 7b8ee80ab1
commit 17aaeda68c
1 changed files with 5 additions and 1 deletions

View File

@ -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);