Language: Improve StringEx
This commit is contained in:
parent
e424402d63
commit
8af67ef883
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user