| From: | "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com> |
|---|---|
| To: | Guy Rouillier <guyr(at)masergy(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Create Produre for DROP row |
| Date: | 2006-01-13 20:44:19 |
| Message-ID: | 20060113204419.GO9017@pervasive.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Wed, Jan 11, 2006 at 03:40:22PM -0600, Guy Rouillier wrote:
> Marcos wrote:
> > Hi,
> >
> > Does have possible create one procedure to delete a row that return
> > TRUE if the deletion was success or FALSE if a error occur?
> >
> > The procedure for deletion I already create but I don't know how
> > detect if the deletion was success executed.
>
> How do you define success? A delete can do nothing and be considered
> successfully executed as long as no DB errors occur. If all you want to
> know is whether or not DB errors occurred, then Jaime supplied a
> solution to that.
I suspect http://lnk.nu/postgresql.org/7ma.html will be of use to the
original poster, in particular FOUND.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
| From | Date | Subject | |
|---|---|---|---|
| Next Message | conexion_electronica | 2006-01-13 21:14:28 | migrar |
| Previous Message | Jim C. Nasby | 2006-01-13 20:29:21 | Re: Concept about stored procedures |