Commit 689c2000 authored by rtiwari's avatar rtiwari

update for remove space while validating ref_code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95616 ce508802-f39f-4f6c-b175-0d175dae99d5
parent daa0bc3a
......@@ -110,9 +110,10 @@ public class SiteRegNoIC extends ValidatorEJB implements SiteRegNoICLocal,SiteRe
}
else
{
sql = " SELECT count(1) FROM GENCODES WHERE FLD_NAME = 'REF_CODE' and FLD_VALUE = ? ";
// sql = " SELECT count(1) FROM GENCODES WHERE FLD_NAME = 'REF_CODE' and FLD_VALUE = ? ";
sql = " SELECT count(1) FROM GENCODES WHERE FLD_NAME = 'REF_CODE' and RTRIM(FLD_VALUE) = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString( 1, refCode );
pstmt.setString( 1, refCode.trim() );
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