Assertion failure on dbaccess

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Ariel_Bahamonde
Posts: 1
Joined: Mon 06 Apr 2009 12:34

Assertion failure on dbaccess

Post by Ariel_Bahamonde » Mon 06 Apr 2009 12:42

I'm using ODAC 6.50.0.39 for RAD Studio 2007, after executing BDE migration wizard and build the application I get this error when I update and insert data:

"Assertion failure (d:\projects\delphi\dac\source\dbacces.pas, line 12061)"

that's what I execute when it fails:

uqry: TOraUpdateSQL;
ttb: TOraTable;

uqryempresas.dataset:=ttb;
uqryempresas.modifysql.clear;
uqryempresas.modifysql.add('UPDATE TABLE SET');
uqryempresas.modifysql.add('FIELD1='''+field1+''',');
uqryempresas.modifysql.add('FIELD2='''+field2+'''');
uqryempresas.modifysql.add('WHERE CONDITION=1');
uqry.execsql(ukmodify); -- it fails at this point


thanks

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

Post by Plash » Tue 07 Apr 2009 06:51

You get this error because the TOraTable component is not opened before you call ExecSQL.

Post Reply