Index: forgon-tools/src/main/java/com/forgon/tools/hibernate/ObjectDaoImpl.java =================================================================== diff -u -r15663 -r15664 --- forgon-tools/src/main/java/com/forgon/tools/hibernate/ObjectDaoImpl.java (.../ObjectDaoImpl.java) (revision 15663) +++ forgon-tools/src/main/java/com/forgon/tools/hibernate/ObjectDaoImpl.java (.../ObjectDaoImpl.java) (revision 15664) @@ -464,8 +464,13 @@ statement.addBatch(sql); } statement.executeBatch();*/ - executeUpdate("begin " + sqlsText + " end;"); + String updateSql = sqlsText; + if(!updateSql.endsWith(";")){ + updateSql = updateSql + ";"; + } + executeUpdate("begin " + updateSql + " end;"); + }catch (SQLException e) { e.printStackTrace(); return false;