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
In short, if your sproc parameter is defined as @optionalString = NULL, then it will be string option in F#, and you then use None to pass null. This is the only supported way of passing null to sprocs.
For scripts, it is possible to use Facil.yaml to explicitly specify whether parameters are nullable. (This is also generally necessary, since script parameter inference is limited). This is currently not possible for procedures. I realize now that this is fairly limiting; one does not always control the sproc definition, and it is not guaranteed that all nullable parameters are defined with NULL as the default value in the sproc parameter list.
I will implement the ability to override nulls for sproc parameters just like for script parameters.
I have an SP which expects a string as a parameter, but this parameter may be null:
This goes pop:
I've tried e.g.
null :> string
and other things but it just gets ignored. If I supply a string, the SP correctly fires.The text was updated successfully, but these errors were encountered: