Re: translating exception messages of postgresql functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Julius Tuskenis wrote:
> Hello,
>
> I'd like to ask how is translation of raised exceptions done in  
> postgresql applications?

You want it translated or not translated?

> In Sybase ASA you can specify the error  
> number when raising it, but in postgresql theres just exception message.  
> As I've read - postgresql always generates P0001 SQLSTATE code for  
> raised exceptions. Have enyone tried to distinguish one exception from  
> the other in the application?

In Postgres 8.4 you will be able to specify error codes to raised
exceptions in PL/pgSQL.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux