Commit 0b60f578 authored by Omkar Ingale's avatar Omkar Ingale

resolved invalid sql no error issue in MailingListPostSave.java

parent 90917360
...@@ -77,8 +77,15 @@ public class MailingListPostSave extends ValidatorEJB { ...@@ -77,8 +77,15 @@ public class MailingListPostSave extends ValidatorEJB {
MailListID = genericUtility.getColumnValue("mail_list_id", dom); MailListID = genericUtility.getColumnValue("mail_list_id", dom);
BaseLogger.log("3", null, null, "MailingListPostSave : mail_list_id :: [" + MailListID + "]"); BaseLogger.log("3", null, null, "MailingListPostSave : mail_list_id :: [" + MailListID + "]");
try {
pstmt = conn.prepareStatement(selectSQLStr); pstmt = conn.prepareStatement(selectSQLStr);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
}catch(Exception e) {
BaseLogger.log("3", null, null, "MailingListPostSave : exception in try block of select query for S: [" + E12GenericUtility.getStackTrace(e) + "]");
retString = itmDBAccessEJB.getErrorString("", "VTSQLSELE", "", "", conn);
return retString;
}
int rowCount = 0; int rowCount = 0;
int lineNo = 1; int lineNo = 1;
...@@ -121,6 +128,8 @@ public class MailingListPostSave extends ValidatorEJB { ...@@ -121,6 +128,8 @@ public class MailingListPostSave extends ValidatorEJB {
BaseLogger.log("3", null, null, "MailingListPostSave : exception in try block: " + e.getMessage()); BaseLogger.log("3", null, null, "MailingListPostSave : exception in try block: " + e.getMessage());
// errorString = getErrorString("email_id", "SQLIM", userId); // errorString = getErrorString("email_id", "SQLIM", userId);
isError = true; isError = true;
retString = itmDBAccessEJB.getErrorString("", "VTSQLSELE", "", "", conn);
return retString;
} finally { } finally {
// Closing resources properly // Closing resources properly
......
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