そのエラーが発生しています。以下は、渡されたクエリです
insert into PROD_SUBTYPE_EXCEPTION_DETAILS
(FILE_NAME,PRODUCT_CATEGORY_DESCRIPTION,PERIOD,P3,P15,TOTAL_AUM,TIME_STAMP,ID,REPORTING_YEAR)
values
('P_20130731.DAT','xxx',last_day(to_date('07'||'2013','MMYYYY')),'xxxx','xxx',8049792.04,CURRENT_TIMESTAMP,'eg12345',2010)
SQL Developerで同じクエリを実行すると問題なく動作しますが、プログラムを介して渡すとエラーが発生します。
私のJavaプログラムは次のとおりです。
public int insert(String query, Object beanVO, Map<Integer, String> placeHolder)
throws SQLException, ClassNotFoundException, IllegalAccessException,
InvocationTargetException, NoSuchMethodException {
PreparedStatement pstmt = null;
Connection con = null;
try {
con = getConnection(true);
pstmt = con.prepareStatement(query);
setPstmtValues(pstmt, beanVO, placeHolder);
int status=pstmt.executeUpdate();
return status;
}
finally{
if (isBatchMode)
{
this.cleanResources(null, pstmt);
}
else
{
this.cleanResources(con, pstmt);
}
}
}