|
Home > Archive > PostgreSQL SQL > October 2005 > ichar
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Judith Altamirano Figueroa 2005-10-27, 8:07 am |
| 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
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
| |
| Tom Lane 2005-10-27, 8:07 am |
| Judith Altamirano Figueroa < jaltamirano@correolu
x.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
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
| |
| Richard Huxton 2005-10-27, 8:07 am |
| 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/pgsq...09/msg00418.php
HTH
--
Richard Huxton
Archonet Ltd
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
|
|
|
|
|