pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedError on function parameters
3+ messages / 3 participants
[nested] [flat]
* Error on function parameters
@ 2006-08-30 12:50 Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
2006-08-30 12:58 ` Re: Error on function parameters Tom Lane <tgl@sss.pgh.pa.us>
2006-08-30 13:06 ` Re: Error on function parameters Anton de Wet <adw@obsidian.co.za>
0 siblings, 2 replies; 3+ messages in thread
From: Ezequias Rodrigues da Rocha @ 2006-08-30 12:50 UTC (permalink / raw)
To: pgsql-sql
Hi list
I am doing an statement like this:
select insertPoints('C', '123456789', 12.5, 1, 9877000000944005, 104)
and get the following error:
ERROR: function inserirpontos("unknown", "unknown", numeric, integer,
bigint, integer) does not exist
HINT: No function matches the given name and argument types. You may need
to add explicit type casts.
My function is declared like this:
Function base.inserirPontos(char(1), varchar(255), numeric(12,2), int8,
int8, int8 ) returns boolean
What I did wrong ?
Please help me.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Atenciosamente (Sincerely)
Ezequias Rodrigues da Rocha
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
A pior das democracias ainda é melhor do que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
http://ezequiasrocha.blogspot.com/
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Error on function parameters
2006-08-30 12:50 Error on function parameters Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
@ 2006-08-30 12:58 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2006-08-30 12:58 UTC (permalink / raw)
To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>; +Cc: pgsql-sql
"Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com> writes:
> I am doing an statement like this:
> select insertPoints('C', '123456789', 12.5, 1, 9877000000944005, 104)
> My function is declared like this:
> Function base.inserirPontos(char(1), varchar(255), numeric(12,2), int8,
> int8, int8 ) returns boolean
Well, is it insertPoints or inserirPontos? Is schema "base" in your
search path?
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Error on function parameters
2006-08-30 12:50 Error on function parameters Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
@ 2006-08-30 13:06 ` Anton de Wet <adw@obsidian.co.za>
1 sibling, 0 replies; 3+ messages in thread
From: Anton de Wet @ 2006-08-30 13:06 UTC (permalink / raw)
To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>; +Cc: pgsql-sql
On Wed, 30 Aug 2006, Ezequias Rodrigues da Rocha wrote:
> Hi list
>
> I am doing an statement like this:
>
> select insertPoints('C', '123456789', 12.5, 1, 9877000000944005, 104)
>
> and get the following error:
>
> ERROR: function inserirpontos("unknown", "unknown", numeric, integer,
> bigint, integer) does not exist
> HINT: No function matches the given name and argument types. You may need
> to add explicit type casts.
>
> My function is declared like this:
>
> Function base.inserirPontos(char(1), varchar(255), numeric(12,2), int8,
> int8, int8 ) returns boolean
>
> What I did wrong ?
Looks like 9877000000944005 is too big for an int8 and it is trying to
find a similar function with bigint instead of integer.
So try bigint as your 5th parameter type.
Anton
--
Forgiveness is giving up all hope for a better past
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-08-30 13:06 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-08-30 12:50 Error on function parameters Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
2006-08-30 12:58 ` Tom Lane <tgl@sss.pgh.pa.us>
2006-08-30 13:06 ` Anton de Wet <adw@obsidian.co.za>
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