Management of the database exception

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
tsr6404
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 04.12.2009, 11:02

Management of the database exception

Post 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
designshouse
Fresh Boarder
Fresh Boarder
Posts: 20
Joined: 21.11.2005, 10:13
Location: Pieštany
Contact:

Post by designshouse »

try to add this unit ZDbcIntfs
tsr6404
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 04.12.2009, 11:02

Post by tsr6404 »

It's ok.

Thanks for your help.

Vincent
:thanks:
Post Reply