Language: Improve StringEx

This commit is contained in:
Jonathan Jenne 2022-11-24 11:14:20 +01:00
parent e424402d63
commit 8af67ef883

View File

@ -20,7 +20,6 @@ Public Module StringEx
''' <returns>The escaped string.</returns>
<Extension()>
Public Function EscapeForSQL(pString As String) As String
If String.IsNullOrEmpty(pString) Then Return pString
Return pString.Replace("'", "''")
Return Utils.NotNull(pString, String.Empty).Replace("'", "''")
End Function
End Module