🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Empty String Parameters are Illegal in ADO?

#5206
From: Arnie Mauer
Date: Tue, 03 Jul 2001 17:34
34 lines
2021 bytes
Yes.  Setting the value to Null (not zero) sets a 'Size' of zero and this
seems to be what upsets either ADOExpress or ADO.

"Alon Novy" <alon.novy@thinksoftware.com.au> wrote in message
news:3b3c42a6$2_1@dnews...
> Arnie
>
> Does the same happen if you try:
>     q->Parameters->ParamByName( "foo" )->Value = Null;        // note:
using
> Null variable, not c/c++ NULL value
>
> or alternatively:
>     q->Parameters->ParamByName( "foo" )->Value = Variant( );
>
> ???
>
> Alon
>
> "Arnie Mauer" <arnie@marketexpert.com> wrote in message
> news:3b20ed67_2@dnews...
> > In a parameterized INSERT statement in a TADOQuery, when setting
> > q->Parameters->ParamByName( "foo" )->Value = "";
> > will cause q->ExecSQL() to throw an excpetion of: "Parameter object is
> > improperly defined.  Inconsistent or incomplete information
> > was provided."  Same goes for a NULL AnsiString.
> >
> > The TParameter Value == NULL and Length == 0.  The DataType
> > has been properly set to ftString after the assignment.  What's
> > wrong with a NULL string?
> >
> >
>
>
Technical Details
Message-ID: <3b42020e$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b20ed67_2@dnews> <3b3c42a6$2_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,bf8db65ec424c3c9
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-07-03 10:41:35 PST
From: "Arnie Mauer" <arnie@marketexpert.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3b20ed67_2@dnews> <3b3c42a6$2_1@dnews>
Subject: Re: Empty String Parameters are Illegal in ADO?
Date: Tue, 3 Jul 2001 13:34:06 -0400
Lines: 36
Organization: VRMS
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: 209.140.211.97
Message-ID: <3b42020e$1_1@dnews>
X-Trace: dnews 994181646 209.140.211.97 (3 Jul 2001 10:34:06 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews