Language: Improve StringEx
This commit is contained in:
parent
e424402d63
commit
8af67ef883
@ -20,7 +20,6 @@ Public Module StringEx
|
|||||||
''' <returns>The escaped string.</returns>
|
''' <returns>The escaped string.</returns>
|
||||||
<Extension()>
|
<Extension()>
|
||||||
Public Function EscapeForSQL(pString As String) As String
|
Public Function EscapeForSQL(pString As String) As String
|
||||||
If String.IsNullOrEmpty(pString) Then Return pString
|
Return Utils.NotNull(pString, String.Empty).Replace("'", "''")
|
||||||
Return pString.Replace("'", "''")
|
|
||||||
End Function
|
End Function
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user