Re: trigger failed to identify the partions

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: trigger failed to identify the partions
Дата
Msg-id 4AA7BD37.7020407@archonet.com
обсуждение исходный текст
Ответ на Re: trigger failed to identify the partions  ("Sridhar Reddy Ratna" <sridhar.ratna@cmcltd.com>)
Список pgsql-sql
Sridhar Reddy Ratna wrote:
> 
>       cmd := 'INSERT INTO ' || dateTable  ||

>       EXECUTE cmd;

>       RETURN NEW;

> If I changed the RETURN NEW to RETURN NULL its inserting only one row.

Yes. RETURN NEW allows the insert to procede normally so you end up with
the two rows.

> But to work with hibernate I need the return NEW statement.

Hmm - not sure I can see a way around this. Maybe someone else who knows
Hibernate can help.

--  Richard Huxton Archonet Ltd


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

Предыдущее
От: "Little, Douglas"
Дата:
Сообщение: how to: refer to select list calculations other places in the calculations.
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: Differences between bit string constant sintax