🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TParameters->ParseSQL strange behaivour

#1087
From: Niyazi Unugur
Date: Mon, 22 Nov 2004 13:34
28 lines
1360 bytes
As described in help;

AnsiString __fastcall ParseSQL(AnsiString SQL, bool DoCreate);

TParameters ParseSQL has the above syntax;

Below is my sample code for testing 

...

AnsiString S = "SELECT * FROM tableA  WHERE p1 = :param1 and p2 = :param2 and p3 = :param3";
AnsiString newS = S;

Query->Parameters->ParseSQL(S, true);

please debug values S and newS

you will see both S and newS has "? ? ?" values;

How S can changed?
How newS changes !!!!

What is the problem?

Thanks,

Niyazi Unugur
Technical Details
Message-ID: <41a1f912$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,388088aac66683ec,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Niyazi Unugur" <unugurn@kentkart.com.tr>
Sender: "Niyazi Unugur" <unugurn@kentkart.com.tr>
Reply-To: "Niyazi Unugur" <unugurn@kentkart.com.tr>
Subject: TParameters->ParseSQL strange behaivour
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 212.174.59.103     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <41a1f912$1@newsgroups.borland.com>
Date: 22 Nov 2004 06:34:58 -0700
X-Trace: newsgroups.borland.com 1101134098 207.105.83.66 (22 Nov 2004 06:34:58 -0700)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail