Unix Technical Forum

Insert into master table ->" 0 rows affected" -> Hibernate problems

This is a discussion on Insert into master table ->" 0 rows affected" -> Hibernate problems within the Pgsql General forums, part of the PostgreSQL category; --> I have implemented partitioning using inheritance following the proposed solution here (using trigger): http://www.postgresql.org/docs/8.3/i...titioning.html My problem is that when ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-04-2008, 04:27 PM
Mattias.Arbin@tietoenator.com
 
Posts: n/a
Default Insert into master table ->" 0 rows affected" -> Hibernate problems

I have implemented partitioning using inheritance following the proposed
solution here (using trigger):
http://www.postgresql.org/docs/8.3/i...titioning.html

My problem is that when my Hibernate application inserts to the master
table, postgres returns "0 rows affected", which causes Hibernate to
throw an exception since it expects the returned row count to be equal
to the number of rows inserted.

Is there a solution to this, i.e. to get Postgres to return the correct
number of rows inserted to the master table?



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:47 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com