Page 1 of 1

Management of the database exception

Posted: 27.01.2010, 13:56
by tsr6404
Hi,

This is my code to activate my TZConnection called "db_sagef". (I'm using Lazarus on XP to connect on a MySQL server).


with dm_sagef.db_sagef do
begin
connected := false;
try
Password := p_password;
User := p_user;
connected := true;
except
on EZSQLException do
begin
...
end;
end;
end; // with dm_sagef.db_sagef do


At compiling, Lazarus detect an error : Identifier not found "EZSQLException"

Witch unit must I declare in the 'uses' declaration ?

Thanks for help

Vincent

Posted: 27.01.2010, 18:39
by designshouse
try to add this unit ZDbcIntfs

Posted: 29.01.2010, 09:12
by tsr6404
It's ok.

Thanks for your help.

Vincent
:thanks: