Commit f27d469d authored by smane's avatar smane

To solving literal does not match issue

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@191084 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f0e51910
......@@ -265,8 +265,9 @@ public class LedgerAllACsAccountWise extends ValidatorEJB implements LedgerAllAC
rs.close();
pstmt.close();
sql1 = "SELECT fr_date FROM period where '"+chgdateFr+"' between fr_date and to_date and code='"+codePrd+"'";
sql1 = "SELECT fr_date FROM period where ? between fr_date and to_date and code='"+codePrd+"'";
pstmt1 = conn.prepareStatement(sql1);
pstmt1.setTimestamp(1,chgdateFr);
rs1 = pstmt1.executeQuery();
if(rs1.next())
......
......@@ -265,8 +265,9 @@ public class Ledgerdatewise extends ValidatorEJB implements LedgerdatewiseLocal,
rs.close();
pstmt.close();
sql1 = "SELECT fr_date FROM period where '"+chgdateFr+"' between fr_date and to_date and code='"+codePrd+"'";
sql1 = "SELECT fr_date FROM period where ? between fr_date and to_date and code='"+codePrd+"'";
pstmt1 = conn.prepareStatement(sql1);
pstmt1.setTimestamp(1,chgdateFr);
rs1 = pstmt1.executeQuery();
if(rs1.next())
......
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