🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Synch with an autoInc field.

#5234
From: Umberto Uderzo
Date: Sun, 24 Jun 2001 22:49
21 lines
1649 bytes
Hello.

The trouble is:
1. I have an Interbase 6.0 table with an "id" primary key field that is
computed on insert by a generator.
2. On client side there is an TADOTable connected with the Interbase one.
3. When i invoke the Append method to insert a new row and begin assigning
values to the new row fields (table->FieldByName( "id_customer" )->AsInteger
= n) i receive an "Unknown Error" exception. I confirm and the value is
correctly inserted into the field.
4. Performing with a connected DBGrid several modifies on the row data i
receive a message that tells me that data maybe changed into the database
row and there is no enough information to identify the current row for
update.

I tried to set the AutoInc and Providerflags to inKey for the "id" field but
seems do nothing useful.

Where is the (sure stupid) mistake?

Thanks... Umberto
Technical Details
Message-ID: <3b366db7_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,bac7e9e137573e9,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-06-24 15:52:47 PST
From: "Umberto Uderzo" <umberto@uderzo.it>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Synch with an autoInc field.
Date: Mon, 25 Jun 2001 00:49:35 +0200
Lines: 23
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: 62.10.20.237
Message-ID: <3b366db7_2@dnews>
X-Trace: dnews 993422775 62.10.20.237 (24 Jun 2001 15:46:15 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews