You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thanks very much for this Library! Not sure if this is by design or if my usage is wrong, however if I pass a vbnullstring or "" as a parameter an error occurs.
The line below in AdoParameterProvider results in the size property of the ADO parameter defaulting to 0 for empty strings. The size property is not allowed to be 0 for string types (at least not in what I am using it for) and causes an error.
If IsCharMapping(Result.Type) And Len(Value) > 0 Then Result.Size = Len(Value)
I have fixed the issue in my project by changing the line to:
If IsCharMapping(Result.Type) Then
If Len(Value) > 0 Then Result.Size = Len(Value) Else Result.Size = 1
End If
Is there a better way?
The text was updated successfully, but these errors were encountered:
First of all thanks very much for this Library! Not sure if this is by design or if my usage is wrong, however if I pass a vbnullstring or "" as a parameter an error occurs.
The line below in AdoParameterProvider results in the size property of the ADO parameter defaulting to 0 for empty strings. The size property is not allowed to be 0 for string types (at least not in what I am using it for) and causes an error.
If IsCharMapping(Result.Type) And Len(Value) > 0 Then Result.Size = Len(Value)
I have fixed the issue in my project by changing the line to:
Is there a better way?
The text was updated successfully, but these errors were encountered: