pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ichar
3+ messages / 3 participants
[nested] [flat]

* ichar
@ 2005-10-11 14:22 Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>
  2005-10-11 14:37 ` Re: ichar Tom Lane <tgl@sss.pgh.pa.us>
  2005-10-11 14:37 ` Re: ichar Richard Huxton <dev@archonet.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Judith Altamirano Figueroa @ 2005-10-11 14:22 UTC (permalink / raw)
  To: pgsql-sql

I moved from postgres 7.0.2 to 8.0.1,

in the 7.0.2 version I process the next query, and it succeed:

select ichar(letra_ascii) || '-' || substr('00000' ||num_factura,length
(num_factura)+1,5) as factura from facturas 

but in 8.0.1 it outputs the next error:

ERROR:  not exist the function ichar(integer) 
HINT:  any function match with the arguments types.
Add explicit cast of types





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: ichar
  2005-10-11 14:22 ichar Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>
@ 2005-10-11 14:37 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2005-10-11 14:37 UTC (permalink / raw)
  To: Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>; +Cc: pgsql-sql

Judith Altamirano Figueroa <jaltamirano@correolux.com.mx> writes:
> ERROR:  not exist the function ichar(integer) 

[ digs in archives... ]  Looks like we renamed ichar() to chr() quite
some time ago.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: ichar
  2005-10-11 14:22 ichar Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>
@ 2005-10-11 14:37 ` Richard Huxton <dev@archonet.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Richard Huxton @ 2005-10-11 14:37 UTC (permalink / raw)
  To: Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>; +Cc: pgsql-sql

Judith Altamirano Figueroa wrote:
> I moved from postgres 7.0.2 to 8.0.1,

If you only have one compatability problem, I'd be surprised.

> in the 7.0.2 version I process the next query, and it succeed:
> 
> select ichar(letra_ascii) || '-' || substr('00000' ||num_factura,length
> (num_factura)+1,5) as factura from facturas 
> 
> but in 8.0.1 it outputs the next error:
> 
> ERROR:  not exist the function ichar(integer) 
> HINT:  any function match with the arguments types.
> Add explicit cast of types

I'll point you to Tom Lane's thoughts on this back in 2000:
  http://archives.postgresql.org/pgsql-hackers/2000-09/msg00418.php

HTH
-- 
   Richard Huxton
   Archonet Ltd



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2005-10-11 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-10-11 14:22 ichar Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>
2005-10-11 14:37 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-10-11 14:37 ` Richard Huxton <dev@archonet.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox