🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problem with ADO and queries

#3366
From: Carlos
Date: Thu, 10 Oct 2002 09:08
34 lines
1843 bytes
Hi, i have detected several problems when i try to modify a select statement
using ADO components (ADODataSet).

I only have the problem when i want to modify the data not when i open the
select to read the data.

For instance if a have two tables:

Table1 (a, b) : a is key
Table2 (a, b) : a is key

1 : 1 relation between Table2_a -> Table1_a

If a do the next select:

SELECT a.a as a, a.b as b, b.a as c, b.b as d
FROM Tabla1 as a INNER JOIN Tabla2 as b on a.a = b.b

I can read and modify the data, but if i do:

SELECT a.a, a.b, b.a, b.b
FROM Tabla1 as a INNER JOIN Tabla2 as b on a.a = b.b

or

SELECT a.a as a, a.b as b, b.b as d
FROM Tabla1 as a INNER JOIN Tabla2 as b on a.a = b.b

i can read the data but not modify it.

My question is: exist some kind of rules for a select statement to ensure
that i can read and modify the data in it ?

Thanks to all.
Technical Details
Message-ID: <3da54378$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,201e0b1895a58752,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-10-10 02:16:02 PST
From: "Carlos" <shangri-la@teleline.es>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Problem with ADO and queries
Date: Thu, 10 Oct 2002 11:08:08 +0200
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 80.24.116.13
Message-ID: <3da54378$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1034240888 80.24.116.13 (10 Oct 2002 02:08:08 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail