Unix Technical Forum

ichar

This is a discussion on ichar within the pgsql Sql forums, part of the PostgreSQL category; --> 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: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Sql

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 11:48 AM
Judith Altamirano Figueroa
 
Posts: n/a
Default ichar

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 11:48 AM
Tom Lane
 
Posts: n/a
Default Re: ichar

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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 11:48 AM
Richard Huxton
 
Posts: n/a
Default Re: ichar

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...9/msg00418.php

HTH
--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:30 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com