Postgresql reception message from database

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

Moderators: gto, EgonHugeist

Post Reply
nestermihai
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 05.12.2008, 09:24
Contact:

Postgresql reception message from database

Post by nestermihai »

How can reception message from database Postgresql 8 in application write in Lazarus?
For example: user send comand for delete record, and in Postgrsql 8 in triger DELETE, for this record, appli RAISE EXCEPTION 'Operatiune message.....!';
How can reception this message in Lazarus application when use Zeoslib components?

Tanks very much!
mariuszekpl
Senior Boarder
Senior Boarder
Posts: 54
Joined: 30.09.2008, 10:59

Post by mariuszekpl »

can you publish sample application ?
You don't have EXCEPTION MESAGE ?
seawolf
Zeos Dev Team *
Zeos Dev Team *
Posts: 385
Joined: 04.06.2008, 19:50
Contact:

Post by seawolf »

I suppose you need to use listen and notify function which are currently not implemented
btrewern
Expert Boarder
Expert Boarder
Posts: 193
Joined: 06.10.2005, 18:51

Post by btrewern »

LISTEN and NOTIFY are slightly different. I think the OP is talking about RAISE NOTICE and RAISE EXCEPTION which can be used in stored procedures to display messages. See here http://www.postgresql.org/docs/8.3/inte ... sages.html

I thought there was a patch in the testing version which logged these messages to the TZSQLMonitor file. Can't find the forum thread at the moment.

Ben
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

btrewern,

You're talking about
- Topic http://zeos.firmos.at/viewtopic.php?t=2021
- Commit 487 in testing branch (Single feature patch)
- Commit 491 which merged this feature to 6.6-patches
- Release 6.6.4 : already contains this 'feature'

Mark
Image
Post Reply