Article View: borland.public.cppbuilder.database.ado
Article #5152Re: removing null-terminators
From: chenjm
Date: Thu, 26 Jul 2001 04:50
Date: Thu, 26 Jul 2001 04:50
34 lines
1792 bytes
1792 bytes
like this: rs->get_Fields()->get_Item( "DO_ACCESS" )->set_Value ( WideString(var) ); "Kirk Franzen" <kfranzen@acornsys.com> wrote in message news:3b37adc9_1@dnews... > Hi, I am inserting character data into a database. ADO appears to be > inserting a null-terminator on the end of the data when it puts it in the > database. > > I say this because no matter what length my db field is the string I put in > through ADO must be one character shorter than the length of the field. Here > is an example of how I am setting the field values: > > rs->get_Fields()->get_Item( "DO_ACCESS" )->set_Value ( var ); - var is a > char* > ... > rs->Update(); > > Am I correct in thinking that ADO is inserting the null-terminator into the > database? If so can I change some property to keep it from doing so? > > Thanks, > > kirk > >
Technical Details
Message-ID:
<3b5fa1bd$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3b37adc9_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,c5d4068a36c09e2f X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-07-25 21:53:34 PST Reply-To: "chenjm" <chenjm@netease.com> From: "chenjm" <chenjm@netease.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3b37adc9_1@dnews> Subject: Re: removing null-terminators Date: Thu, 26 Jul 2001 12:50:36 +0800 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 211.100.71.152 Message-ID: <3b5fa1bd$1_1@dnews> X-Trace: dnews 996123069 211.100.71.152 (25 Jul 2001 21:51:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews