Management of the database exception
Posted: 27.01.2010, 13:56
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
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