[Mono-dev] Maybe a System.Data.OracleClient.dll bug

Leszek Ciesielski skolima at gmail.com
Tue Sep 26 10:14:04 EDT 2006


On 9/26/06, Jörg Rosenkranz <joerg.rosenkranz at gmail.com> wrote:
> Hi all,
>
> I have attached a patch which should fix this problem.
> Please check that it runs correctly because I can not build and test
> this patch here.
>
> Joerg.
>
> 2006/9/26, David <jiangchengyao at gmail.com>:
> > Finally, I find a way to insert the string.
> >
> > In my sample;
> >
> > // insert 4 length chinese string to database
> > parm.Value = "测试插入";
> >
> > // and give it eight space like :
> > parm.Value = "测试插入        ";
> >
> > then all the string will insert into the database, and you will not
> > see the space
> > the string length in database is 4 as we expected.
> >
> > My conclusion is : parm.Value should be the string you want and plus
> > the 2*string's length space

It _looks_ correct. I'll add some test to it as soon as I have access
to my linux box again (in about a week), and if all works well, commit
the change.
It would be nice to use GetBytesCount() instead, but that would
require knowing the exact string we are going to bind - which we don't
know. (Correct me if I'm wrong)


More information about the Mono-devel-list mailing list