PostgreSQL: Support to Payload when receiving Database Notifications
Original Reporter info from Mantis: dgaspary @dgaspary
-
Reporter name: Daniel Gaspary
Original Reporter info from Mantis: dgaspary @dgaspary
- Reporter name: Daniel Gaspary
Description:
The payload is already being received at postgres3types.inc, record Type pgNotify, field extra.
But it's not being forwarded to the user by TEventAlert Event.
The Patch fix this.
Additional information:
&LtPos;FPCDIR>/packages/fcl-db/src/sqldb/postgres/pqeventmonitor.pp
48c48
< TEventAlert = procedure(Sender: TObject; EventName: string; EventCount: longint;
---
TEventAlert = procedure(Sender: TObject; EventName, Payload: string; EventCount: longint;
167c167
< OnEventAlert(Self,notify^.relname,1,CancelAlerts);
---
OnEventAlert(Self,notify^.relname,notify^.extra,1,CancelAlerts);