Re: [IBPP-DISCUSS] why does IBPP::SQLException not work?
IBPP is a C++ client class library for FirebirdSQL
Status: Inactive
Brought to you by:
epocman
|
From: Milan B. <mil...@gm...> - 2019-11-15 14:35:03
|
On pet, 15. nov 2019. at 12.03 Harald Wolf <ib...@on...> wrote:
> Hi, i need some help. Is this List alive?
> i get no sql exception in my code if a statement causes an Error.
> The following code works without exceptions nor any other.
>
> tr = IBPP::TransactionFactory(db);
> IBPP::Statement st = IBPP::StatementFactory(db, tr);
> db->Connect();
> tr->Start();
> st->Execute("blabla");
> tr->Commit();
>
> how can i get sql error codes?
Make sure you enable C++ exceptions in your compiler settings and then use
try..catch.
M.
--
Milan Babuskov
http://www.guacosoft.com
|