Re: invalid memory alloc after insert with c trigger function

Поиск
Список
Период
Сортировка
От Dudás József
Тема Re: invalid memory alloc after insert with c trigger function
Дата
Msg-id 466057FD.7030505@freemail.hu
обсуждение исходный текст
Ответ на Re: invalid memory alloc after insert with c trigger function  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: invalid memory alloc after insert with c trigger function  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-general
Yes! You are right! Now must me find out how to convert char* to numeric
datum and double to numeric datum and numeric datum to double :)


> =?ISO-8859-2?Q?Dud=E1s_J=F3zsef?= <dj1999@freemail.hu> writes:
>
>> Just have problem with this conversion from TEXT - double - Datum (
>> NUMERIC ) where in TEXT is a number value forexample now the value is 1.00
>>
>
> NUMERIC?  You didn't say anything about NUMERIC before.  The code you
> posted thinks it is working with a FLOAT8 datum, which is just about
> entirely unlike NUMERIC.  If you are trying to assign that to a table
> column that's declared as NUMERIC, then that type mismatch is exactly
> your problem.
>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org/
>
>
>


В списке pgsql-general по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: New Live CD needed
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: multimaster (was: Slightly OT.)