SQL Status:42883

Поиск
Список
Период
Сортировка
Искать

SQL Status:42883

От:
"Andreas Junius" <andreas@junius.info>
Дата:
Hi Postgres professionals,

I hope someone is able to give some advice to the following matter:

I created two plpgsql functions, which appear in pgAdminIII as
expected. The first one works fine, it has only four arguments. The
other one has 10 arguments and I have got the error

FEHLER: Funktion md.insertuser(unknown, unknown, unknown, integer, unknown, unknown, unknown, unknown, integer, timestamp with time zone) existiert nicht
SQL Status:42883
Hinweis:Keine Funktion stimmt mit dem angegebenen Namen und den Argumenttypen überein. Sie müssen möglicherweise ausdrückliche Typumwandlungen hinzufügen.
Zeichen:15

Ok the message seems to be clear, I have to add some casts (why by the
way, the other function didn't need any cast?)

If I try it again, I'll get:

FEHLER: Funktion md.insertuser(character varying, character varying, timestamp without time zone, integer, character varying, character varying, character varying, timestamp without time zone, integer, timestamp with time zone) existiert nicht
SQL Status:42883
Hinweis:Keine Funktion stimmt mit dem angegebenen Namen und den Argumenttypen überein. Sie müssen möglicherweise ausdrückliche Typumwandlungen hinzufügen.
Zeichen:15

I have no idea what to do, because the casts happened, the function
has already been there, it should work, but it don't work? The
argument list matches exactly.  I tried a
lot of things, e.g. creating the function without any function, to be
sure there is no fault within the function body.

I'm grateful for every tip!

Andreas



Re: SQL Status:42883

От:
"Andrej Ricnik-Bay" <andrej.groups@gmail.com>
Дата:
2008/12/2 Andreas Junius :

> FEHLER: Funktion md.insertuser(unknown, unknown, unknown, integer, unknown, unknown, unknown, unknown, integer, timestamp with time zone) existiert nicht
> SQL Status:42883
> Hinweis:Keine Funktion stimmt mit dem angegebenen Namen und den Argumenttypen überein. Sie müssen möglicherweise ausdrückliche Typumwandlungen hinzufügen.
> Zeichen:15


> FEHLER: Funktion md.insertuser(character varying, character varying, timestamp without time zone, integer, character varying, character varying, character varying, timestamp without time zone, integer, timestamp with time zone) existiert nicht
> SQL Status:42883
> Hinweis:Keine Funktion stimmt mit dem angegebenen Namen und den Argumenttypen überein. Sie müssen möglicherweise ausdrückliche Typumwandlungen hinzufügen.
> Zeichen:15

It would help to know how the function has been defined, rather than
just seeing failed invocations ...

Re: SQL Status:42883

От:
Andreas Kretschmer <akretschmer@spamfence.net>
Дата:
Andreas Junius  schrieb:

> Hi Postgres professionals,
> 
> I hope someone is able to give some advice to the following matter:
> 
> I created two plpgsql functions, which appear in pgAdminIII as
> expected. The first one works fine, it has only four arguments. The
> other one has 10 arguments and I have got the error
> 
> FEHLER: Funktion md.insertuser(unknown, unknown, unknown, integer, unknown, unknown, unknown, unknown, integer, timestamp with time zone) existiert nicht
> SQL Status:42883
> Hinweis:Keine Funktion stimmt mit dem angegebenen Namen und den Argumenttypen überein. Sie müssen möglicherweise ausdrückliche Typumwandlungen hinzufügen.
> Zeichen:15

How do you call the function?


> 
> Ok the message seems to be clear, I have to add some casts (why by the
> way, the other function didn't need any cast?)
> 
> If I try it again, I'll get:
> 
> FEHLER: Funktion md.insertuser(character varying, character varying, timestamp without time zone, integer, character varying, character varying, character varying, timestamp without time zone, integer, timestamp with time zone) existiert nicht
> SQL Status:42883
> Hinweis:Keine Funktion stimmt mit dem angegebenen Namen und den Argumenttypen überein. Sie müssen möglicherweise ausdrückliche Typumwandlungen hinzufügen.
> Zeichen:15

Wild guess: you are from germany? Me too, btw.



> I'm grateful for every tip!

Please show us, how do you call the function, and how do you define this
function.


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

Re: SQL Status:42883

От:
"Andreas Junius" <andreas@junius.info>
Дата:
Oh my god! I have found my mistake. I used now() as an argument, which
is a 'timestamp with time zone' type, but my method expects 'timestamp
without time zone'. It's a minor difference, but is one. I'm surprised,
that this didn't happen earlier.

           Andreas

am Montag, 1. Dezember 2008 um 20:18 schrieben Sie:

AK> Andreas Junius  schrieb:

>> Hi Postgres professionals,
>> 
>> I hope someone is able to give some advice to the following matter:
>> 
>> I created two plpgsql functions, which appear in pgAdminIII as
>> expected. The first one works fine, it has only four arguments. The
>> other one has 10 arguments and I have got the error
>> 
>> FEHLER: Funktion md.insertuser(unknown, unknown, unknown, integer, unknown, unknown, unknown, unknown, integer, timestamp with time zone) existiert nicht
>> SQL Status:42883
>> Hinweis:Keine Funktion stimmt mit dem angegebenen Namen und den Argumenttypen überein. Sie müssen möglicherweise ausdrückliche Typumwandlungen hinzufügen.
>> Zeichen:15


FAQ