Commit 562e8935 authored by kshinde's avatar kshinde

Closing statements and replacing statements with prepared Statements

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196649 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e767316e
......@@ -1153,14 +1153,6 @@ public class FinCommon
+ "AND ACCT_CODE = '"+ ls_acctcode +"' AND CCTR_CODE = '"+ ls_cctrcode +"'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_acctprd);
pstmt.setString(2, ls_openprd);
pstmt.setString(3, ls_finentity);
pstmt.setString(4, ls_sitecode);
pstmt.setString(5, ls_sundrytype);
pstmt.setString(6, ls_sundrycode);
pstmt.setString(7, ls_acctcode);
pstmt.setString(7, ls_cctrcode);
rs = pstmt.executeQuery();
//rs = stmt.executeQuery(sql);
if (rs.next())
......@@ -1428,14 +1420,6 @@ public class FinCommon
//stmt = conn.createStatement(); // Added as stmt is closed and asigned null above - Piyush - 26/03/08
//rs = stmt.executeQuery(sql);
pstmt= conn.prepareStatement(sql);
pstmt.setString(1, ls_acctprd);
pstmt.setString(2, ls_closeprd);
pstmt.setString(3, ls_finentity);
pstmt.setString(4, ls_sitecode);
pstmt.setString(5, ls_sundrytype);
pstmt.setString(6, ls_sundrycode);
pstmt.setString(7, ls_acctcode);
pstmt.setString(8, ls_cctrcode);
rs=pstmt.executeQuery();
if (rs.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