Unix Technical Forum

Postgres 7.4 function

This is a discussion on Postgres 7.4 function within the pgsql Sql forums, part of the PostgreSQL category; --> Hi, I am using a function in postgres 7.4 that returns an integer. I modified my store procedure (same ...


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, 05:51 PM
Radhika Sambamurti
 
Posts: n/a
Default Postgres 7.4 function

Hi,
I am using a function in postgres 7.4 that returns an integer.
I modified my store procedure (same function and parameters) to point to
another table, and return an int.
But now I am not getting the correct answer only 0.

I verified that the column I am returning is int in both the first table
and hte modified table. I even tried returning a varchar (the native type
for postgres libpq). Still no luck.

Any ideas?

Thanks
Radhika



--
It is all a matter of perspective. You choose your view by choosing where
to stand.
Larry Wall
---


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 05:51 PM
Scott Marlowe
 
Posts: n/a
Default Re: Postgres 7.4 function

On 8/29/07, Radhika Sambamurti <radhika@88thstreet.com> wrote:
> Hi,
> I am using a function in postgres 7.4 that returns an integer.
> I modified my store procedure (same function and parameters) to point to
> another table, and return an int.
> But now I am not getting the correct answer only 0.
>
> I verified that the column I am returning is int in both the first table
> and hte modified table. I even tried returning a varchar (the native type
> for postgres libpq). Still no luck.


Can you make a small example case of what you're doing that will
produce the error?

Warning, I don't have a 7.4 instance running anymore, but someone else
might.

---------------------------(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 11:01 PM.


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