Problem when inserting/appending

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
DCast
Posts: 4
Joined: Wed 30 Nov 2005 17:47

Problem when inserting/appending

Post by DCast » Sun 25 Mar 2007 01:25

Hello,

I have the following scenario:

qQuery:
Select * From tbl_table t, sys_table s Where (s.nr = t.sys)

tbl_table:
nr INTEGER pk,
sys INTEGER not null,
filler varchar

sys_table:
nr pk,
filler varchar

Now here's my problem, when i try to add a record to qQuery, it keeps failing with the following message i know that this is a required field in sys_table, but i'm doing exactly the same with your MySQLDAC and that is doing what i want.

What i want is, the main table (tbl_table) to be updated.

Is this possible in ODAC too?

i'm i overlooking something?

Thx.

/Michael

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 27 Mar 2007 09:50

You should change the SQL property value to the following:

Code: Select all

SELECT t.*, s.filter FROM tbl_table t, sys_table s
WHERE (s.nr = t.sys)

Post Reply