From 06a3d735c355395d12c76b9d0646ef5ef5a23dfb Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Tue, 19 Sep 2023 14:23:31 +0200 Subject: [PATCH] truncate error message from validation sql --- App/EmailProfiler.Common/clsWorkEmail.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/EmailProfiler.Common/clsWorkEmail.vb b/App/EmailProfiler.Common/clsWorkEmail.vb index 51c0f43..6cb5273 100644 --- a/App/EmailProfiler.Common/clsWorkEmail.vb +++ b/App/EmailProfiler.Common/clsWorkEmail.vb @@ -793,7 +793,7 @@ Public Class clsWorkEmail '{pCurrentMail.SenderAddress}', {CURRENT_PROFILE_GUID}, '{pStatus}', - '{pComment.Substring(0, 500)}' + '{pComment.Truncate(500)}' )" Return _DB_MSSQL.ExecuteNonQuery(ins) End Function