🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1392

Re: Using transactions

#1392
From: Viatcheslav V. Vassiliev
Date: Fri, 02 Jul 2004 16:48
38 lines
2024 bytes
Probably EZSQLException. Or try to catch Exception and when exception is
raised check its ClassName property.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Dan " <danferro@portugalmail.pt> �������/�������� � �������� ���������:
news:40e58440$1@newsgroups.borland.com...
>
> HI all,
> iam using zeos access component wich, works a litle like the ADO component
(at least thats what i heard). In ZConnection i have methods like
StartTransaction(), Commit(),Rollback() i think i have to do something like
>
> try
> {
>   ZConnection1->StartTransaction();
>   ZQuery1->insert...
> ...
> ...
> .-.
>
> }catch (?!?!?)
> {
>   ZConnection1->RollBack();
> }
> else
> {
>   ZConnection1->Commit();
> }
>
> but i dont know how to get the error from the DB (iam using postgres)
> Thx in advanced
Technical Details
Message-ID: <40e591f4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40e58440$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,c0adafe1332eb6a2
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40e58440$1@newsgroups.borland.com>
Subject: Re: Using transactions
Date: Fri, 2 Jul 2004 20:48:51 +0400
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 213.234.218.42
Message-ID: <40e591f4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1088786932 213.234.218.42 (2 Jul 2004 09:48:52 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail