[Mono-dev] OdbcParameter.CopyValue does not implement Binary

Ernesto equistango at gmail.com
Mon Jul 14 19:44:50 EDT 2008


I noted OdbcParameter.CopyValue does not implement OdbcType.Binary:

DataBase.Execute: System.NotImplementedException: The requested feature 
is not implemented.
  at System.Data.Odbc.OdbcParameter.CopyValue () [0x000be] in 
/home/usuario/mono/mcs/class/System.Data/System.Data.Odbc/OdbcParameter.cs:432 

  at (wrapper remoting-invoke-with-check) 
System.Data.Odbc.OdbcParameter:CopyValue ()
  at System.Data.Odbc.OdbcCommand.BindParameters () [0x0002d] in 
/home/usuario/mono/mcs/class/System.Data/System.Data.Odbc/OdbcCommand.cs:465 

  ...

However it implements OdbcType.VarBinary and OdbcType.Image, which 
should be the same (like Char, VarChar and Text all get the same treatment).
If you think it's ok, this is a patch to give Binary the same treatment 
as VarBinary. Passed the test suite and tested in real life with myodbc.

Regards,
Ernesto

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: odbcparamenter_binary.patch
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080714/0d5cff09/attachment-0001.pl 


More information about the Mono-devel-list mailing list