Commit 60cb33ab authored by manohar's avatar manohar

db2 related changes for xmltype column


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94480 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1b77d18d
......@@ -316,10 +316,20 @@ public class WorkorderRelease extends ProcessEJB implements WorkorderReleaseLoca
pstmt.executeUpdate();
}
if ("db2".equalsIgnoreCase(CommonConstants.DB_NAME ) )
{
sql = " INSERT INTO WORDER_RT_STEPS ("
+ " WORK_ORDER, OPERATION, SEQ_NO, SEQ_NO__LEVEL, "
+ " DESCR, STATUS, SCH_DATE, START_DATE, END_DATE, TEMPLATE_NAME, DATA_XML ,WORK_CTR,MC_CODE )"
+ " VALUES ( ?,?,?,?,?,?,?,?,?,?,? , ? , ?) " ;
}
else
{
sql = " INSERT INTO WORDER_RT_STEPS ("
+ " WORK_ORDER, OPERATION, SEQ_NO, SEQ_NO__LEVEL, "
+ " DESCR, STATUS, SCH_DATE, START_DATE, END_DATE, TEMPLATE_NAME, DATA_XML ,WORK_CTR,MC_CODE )"
+ " VALUES ( ?,?,?,?,?,?,?,?,?,?,XmlType(?) , ? , ?) " ;
}
pstmtInsert = conn.prepareStatement( sql );
//change sql done by kunal on 27/AUG/13 remove BMR_TEMPLATE table ,template name and xml get from procroute_oper_instr table
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment