Re: function problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ABHANG RANE <arane(at)indiana(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: function problem
Date: 2007-06-06 23:29:04
Message-ID: 16930.1181172544@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

ABHANG RANE <arane(at)indiana(dot)edu> writes:
> I have written a function called similarity in postgresql which accepts
> real[] as argument. I then call it by saying

> select * from similarity('{1.232,5.0000, 5.100, 10000}');

> I get this error.

> Could not choose a best candidate function. You may need to add
> explicit type casts.

Apparently you've got more than one function named "similarity".
If that wasn't intentional, get rid of the bogus ones. If it was,
cast your constant to make it clear which type you intend.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ABHANG RANE 2007-06-06 23:30:49 cube for real[]
Previous Message Dan Scott 2007-06-06 23:25:31 Re: New Live CD needed