Page 1 of 1

Assertion failure on dbaccess

Posted: Mon 06 Apr 2009 12:42
by Ariel_Bahamonde
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

Posted: Tue 07 Apr 2009 06:51
by Plash
You get this error because the TOraTable component is not opened before you call ExecSQL.