pyrkamarcin
07/27/2019, 11:35 AMval confirmAccountDeletionEmailStatement = configurationConnection().prepareStatement("SELECT t.id,t.name,t.subject,t.content FROM email_templates t WHERE name='confirm_account_deletion'")
val confirmAccountDeletionEmailResultSet = confirmAccountDeletionEmailStatement.executeQuery()
var confirmAccountDeletionEmailId = 0
var confirmAccountDeletionEmailName = ""
var confirmAccountDeletionEmailSubject = ""
var confirmAccountDeletionEmailContent = ""
while (confirmAccountDeletionEmailResultSet.next()) {
confirmAccountDeletionEmailId = confirmAccountDeletionEmailResultSet.getInt(1)
confirmAccountDeletionEmailName = confirmAccountDeletionEmailResultSet.getString(2)
confirmAccountDeletionEmailSubject = confirmAccountDeletionEmailResultSet.getString(3)
confirmAccountDeletionEmailContent = confirmAccountDeletionEmailResultSet.getString(4)
}
?tddmonkey
07/27/2019, 11:37 AMpyrkamarcin
07/27/2019, 11:48 AMFelipe Assoline
07/27/2019, 12:15 PMMike
07/27/2019, 2:06 PMMarc Knaup
07/27/2019, 3:15 PMconfirmAccountDeletionEmail
variable name prefix.
• Show more code how the variables are used. You shouldn’t need var
nor have a need for initializing the variable at all if there is no result in the result set. But for that more context is needed 🙂