Commit c2f6230e authored by msharma's avatar msharma

Lock issue resolved in detail table while joining with header


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95072 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 31b3a829
......@@ -225,10 +225,11 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo
+" in( select dist_order, line_no "
+" from distorder_det dist "
+" where trim( dist.dist_order) = trim(hdr.dist_order) )";
if ("db2".equalsIgnoreCase(CommonConstants.DB_NAME ) || "mysql".equalsIgnoreCase(CommonConstants.DB_NAME ))
/*if ("db2".equalsIgnoreCase(CommonConstants.DB_NAME ) || "mysql".equalsIgnoreCase(CommonConstants.DB_NAME ))
{
sql = sql + " for update ";
}System.out.println("executing Sql "+sql);
}*/
System.out.println("executing Sql "+sql);
pstmt = conn.prepareStatement( sql );
pstmt.setString(1,tranId.trim());
rs = pstmt.executeQuery();
......@@ -308,10 +309,12 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo
+" in( select dist_order "
+" from distorder_det dist "
+" where trim( dist.dist_order) = trim(hdr.dist_order) )";
if ("db2".equalsIgnoreCase(CommonConstants.DB_NAME ) || "mysql".equalsIgnoreCase(CommonConstants.DB_NAME ))
/* if ("db2".equalsIgnoreCase(CommonConstants.DB_NAME ) || "mysql".equalsIgnoreCase(CommonConstants.DB_NAME ))
{
sql = sql + " for update ";
}System.out.println("executing Sql "+sql);
}
*/
System.out.println("executing Sql "+sql);
pstmt = conn.prepareStatement( sql );
pstmt.setString(1,tranId.trim());
rs = pstmt.executeQuery();
......
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