Commit 6f066a5a authored by spawar's avatar spawar

Changed in generic mapper sql parameter data type


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98617 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5fb9304d
...@@ -3665,7 +3665,7 @@ public class SapSorderEJB extends ActionHandlerEJB implements SapSorderEJBLocal, ...@@ -3665,7 +3665,7 @@ public class SapSorderEJB extends ActionHandlerEJB implements SapSorderEJBLocal,
String dataType = mappingSqlParamType.get(count-1).toString(); String dataType = mappingSqlParamType.get(count-1).toString();
String val = sqlParamValue.trim(); String val = sqlParamValue.trim();
int prepCount = count++; int prepCount = count++;
System.out.println("Sql Parameter Data Type= "+dataType);
if((dataType.toUpperCase().indexOf("STRING") != -1) || (dataType.toUpperCase().indexOf("CHAR") != -1) || (dataType.toUpperCase().indexOf("VARCHAR") != -1)) if((dataType.toUpperCase().indexOf("STRING") != -1) || (dataType.toUpperCase().indexOf("CHAR") != -1) || (dataType.toUpperCase().indexOf("VARCHAR") != -1))
{ {
pstmt.setString(prepCount, String.valueOf(val)); pstmt.setString(prepCount, String.valueOf(val));
...@@ -3720,6 +3720,7 @@ public class SapSorderEJB extends ActionHandlerEJB implements SapSorderEJBLocal, ...@@ -3720,6 +3720,7 @@ public class SapSorderEJB extends ActionHandlerEJB implements SapSorderEJBLocal,
mappingSqlParam.clear(); mappingSqlParam.clear();
totalMatchNodeArr.clear(); totalMatchNodeArr.clear();
mappingSqlParamType.clear();
} }
......
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