On 9/26/06, Jörg Rosenkranz <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>: > > 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) _______________________________________________ Mono-devel-list mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-devel-list
