[Mono-bugs] [Bug 656833] OdbcParameter.Bind() can pass a NULL pointer to SQLBindParameter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 6 11:08:44 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=656833

https://bugzilla.novell.com/show_bug.cgi?id=656833#c5


Richard Kettlewell <Richard.Kettlewell at thales-esecurity.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
       InfoProvider|Richard.Kettlewell at thales-e |
                   |security.com                |

--- Comment #5 from Richard Kettlewell <Richard.Kettlewell at thales-esecurity.com> 2011-06-06 15:08:43 UTC ---
Created an attachment (id=433072)
 --> (http://bugzilla.novell.com/attachment.cgi?id=433072)
Example program

The attached example succeeds on the Microsoft implementation but fails under
Mono.

> "An application can set the ParameterValuePtr argument to a null pointer,
> as long as *StrLen_or_IndPtr is SQL_NULL_DATA or SQL_DATA_AT_EXEC.
> (This applies only to input or input/output parameters.)"

*StrLen_or_IndPtr is neither of those things in this case, so the exception
does not apply.  As far as I can see the caller is not free to set to
ParameterValuePtr to a null pointer just because the data happens to be 0 bytes
long.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list