🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #87

Re: Stupid BUG in SQL LINKS ORACLE driver/Delphi

#87
From: Christoph Gehrke
Date: Wed, 18 Aug 1999 00:00
42 lines
3136 bytes
I remember there were some problems with Delphi 3 and Oracle. I`m not sure
but I think you need capital letters for Table- and Columnnames and single-
and doublequotas...
something like this:
select COLUMN from "TABLE" where COLUMN like '''value'''

Christoph




Deja User schrieb in Nachricht <7pehog$1ar$1@nnrp1.deja.com>...
>I am using Delphi 3.01 C/S so I am not sure if it has been fixed in
>future versions. I am not even sure if it's a bug or a feature but my
>trace into the behaviour have all the tell tale signs of a bug.
>
>Place a TQuery component on a form. The database property should point
>to an Oracle alias. I am not sure how it will react to other SQL
>servers (or more accurately, how other SQL servers will react to it).
>Set the SQL property to a simple statment and qualify the table name
>will the schema name as well. For example: select * from schema.table
>Turn the Request Live property to TRUE and now try to set the Active
>property of TQuery to True. You will get an error message from Oracle
>that Table or View does not exist. Your first reaction may be that Live
>Queries are not supported on remote SQL servers. Well, that may be true
>but that is not what causing the error. You are getting the error from
>Oracle and not Delphi....hmmm....
>Time to dig in a little: Start SQL Monitor and then run the form
>containing your TQuery. You will see that after a bunch of (seemingly
>useless) conversation with Oracle, the Delphi sends (Select * from
>"schema"."table") to the Oracle server---notice double quotes around
>schema and table names. If you take the SQL statement as is, i.e. with
>double quotes around the schema and table names and run it any SQL tool
>(e.g. SQL WorkSheet from Oracle), you will get the same "Table or View
>does not exist" error message. So, it is the quotes which are causing
>this error.  FOLKS AT INPRISE SHOULD HAVE KNOWN BETTER.....!!!!
>
>Regards,
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.
Technical Details
Message-ID: <7pejmj$4ot$1@news05.btx.dtag.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7pehog$1ar$1@nnrp1.deja.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff75c,dcaa479e61387f7d
X-Google-Attributes: gidff75c,public
X-Google-Thread: 10baee,dcaa479e61387f7d
X-Google-Attributes: gid10baee,public
X-Google-Thread: 10de66,dcaa479e61387f7d
X-Google-Attributes: gid10de66,public
X-Google-Thread: fd817,dcaa479e61387f7d
X-Google-Attributes: gidfd817,public
From: "Christoph Gehrke" <christoph.gehrke@gmx.de>
Subject: Re: Stupid BUG in SQL LINKS ORACLE driver/Delphi
Date: 1999/08/18
Message-ID: <7pejmj$4ot$1@news05.btx.dtag.de>
X-Deja-AN: 514245235
Content-Transfer-Encoding: 8bit
References: <7pehog$1ar$1@nnrp1.deja.com>
X-Sender: 320043133419-0001@t-online.de
Content-Type: text/plain; charset=ISO-8859-1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
X-Complaints-To: abuse@t-online.de
X-Trace: news05.btx.dtag.de 934990355 4893 320043133419-0001 990818 15:32:35
Organization: T-Online
Mime-Version: 1.0
Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.database.sqlservers,borland.public.delphi.database.desktop,alt.comp.lang.borland-delphi