Casts to text/varchar

Started by Bruce Momjianabout 23 years ago2 messagesgeneral
Jump to latest
#1Bruce Momjian
bruce@momjian.us

ERROR: Cannot cast type integer[] to character varying

I would think every datatype should have at least one cast, the cast to a text
or varchar. Otherwise how is an application to know how to print an arbitrary
unknown type for human consumption? Where do the existing "{...}"
representations get created and how does one invoke that in a query?

--
greg

#2Dennis Gearon
gearond@cvc.net
In reply to: Bruce Momjian (#1)
Re: Casts to text/varchar

Don't know,
good point,
looking forward to the answer :0(

Greg Stark wrote:

Show quoted text

ERROR: Cannot cast type integer[] to character varying

I would think every datatype should have at least one cast, the cast to a text
or varchar. Otherwise how is an application to know how to print an arbitrary
unknown type for human consumption? Where do the existing "{...}"
representations get created and how does one invoke that in a query?

--
greg

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)