DataSet editing in ODAC 5.1 (C++Builder 6.0) problem !!!

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
KSalawa

DataSet editing in ODAC 5.1 (C++Builder 6.0) problem !!!

Post by KSalawa » Tue 02 Nov 2004 20:46

Hi,
Can anyone tell me, how can I edit a dataset using TOraQuery without using SQLUpdate property ?. In BDE, it may be done by following code:
Query->Edit();
Query->FieldByName("field_name")->AsString = field_value
....
....
Query->Post();

K.Salawa

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

DataSet editing in ODAC 5.1 (C++Builder 6.0) problem !!!

Post by Paul » Wed 03 Nov 2004 09:27

TOraQuery cannot update records without using SQLUpdate. Please use TSmartQuery for this purpose. Please see "Working with TSmartQuery component" topic in ODAC help.

KSalawa

Post by KSalawa » Sat 06 Nov 2004 20:48

Tanks for your help.

By the way, I found this feature (TSmartQuery) a few minutes after I send my previous post :)

Post Reply