🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5239

removing null-terminators

#5239
From: Kirk Franzen
Date: Mon, 25 Jun 2001 21:34
19 lines
1546 bytes
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: <3b37adc9_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,c5d4068a36c09e2f,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-06-25 14:40:33 PST
Reply-To: "Kirk Franzen" <kfranzen@acornsys.com>
From: "Kirk Franzen" <kfranzen@acornsys.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: removing null-terminators
Date: Mon, 25 Jun 2001 16:34:29 -0500
Lines: 21
Organization: Acorn Systems Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 64.216.88.1
Message-ID: <3b37adc9_1@dnews>
X-Trace: dnews 993504713 64.216.88.1 (25 Jun 2001 14:31:53 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews