Re: [GENERAL] error handling in cast functions for user defined types

2006-05-16 Thread Don Y
Tom Lane wrote: Don Y <[EMAIL PROTECTED]> writes: I'm writing a set of casts to/from various user defined types. As is unexpected, there are cases where one data type doesn't neatly map to another (for certain values). In these cases I emit an INVALID_PARAMETER_VALUE or OUT_OF_RANGE error -- d

Re: [GENERAL] error handling in cast functions for user defined types

2006-05-15 Thread Tom Lane
Don Y <[EMAIL PROTECTED]> writes: > I'm writing a set of casts to/from various user defined > types. As is unexpected, there are cases where one > data type doesn't neatly map to another (for certain > values). In these cases I emit an INVALID_PARAMETER_VALUE > or OUT_OF_RANGE error -- depending

[GENERAL] error handling in cast functions for user defined types

2006-05-15 Thread Don Y
Hi, I'm writing a set of casts to/from various user defined types. As is unexpected, there are cases where one data type doesn't neatly map to another (for certain values). In these cases I emit an INVALID_PARAMETER_VALUE or OUT_OF_RANGE error -- depending on the situation. But, should I also