Article View: borland.public.cppbuilder.database.ado
Article #5352Empty String Parameters are Illegal in ADO?
From: Arnie Mauer
Date: Fri, 08 Jun 2001 15:23
Date: Fri, 08 Jun 2001 15:23
9 lines
1284 bytes
1284 bytes
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:
<3b20ed67_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,bf8db65ec424c3c9,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-06-08 08:23:57 PST From: "Arnie Mauer" <arnie@marketexpert.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Empty String Parameters are Illegal in ADO? Date: Fri, 8 Jun 2001 11:23:18 -0400 Lines: 11 Organization: VRMS 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: 209.140.211.97 Message-ID: <3b20ed67_2@dnews> X-Trace: dnews 992013671 209.140.211.97 (8 Jun 2001 08:21:11 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews