-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Batchupdate errors with mySQL
PostPosted: Wed Jun 29, 2005 9:17 pm 
Beginner
Beginner

Joined: Tue Jan 18, 2005 6:44 pm
Posts: 39
On attempting a cascade save which works with oracle fails for mySQL.
The error message is

Incorrect arguments to mysql_stmt_execute

Is this a problem with mySQL or with any setting on my side with hibernate?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2005 10:15 am 
Regular
Regular

Joined: Sun May 08, 2005 2:48 am
Posts: 118
Location: United Kingdom
I get the same with 3.0.5, I'm about to go back to 3.0.2 as I don't think I broke since I upgraded recently.

How do you get Hibernate to dump the SQL parameter values as well as the SQL ?

My object is also setup for cascade, but i have walked the object tree and run hsession.save() on each object I encountered to make it assign new object ids to objects going transient -> persistant.

Code:
Hibernate: insert into foobar_data_map (letter_id, name, value) values (?, ?, ?)
WARN  01-07 15:09:38,447 (JDBCExceptionReporter.java:logExceptions:71)  -SQL Error: 1210, SQLState: HY000
ERROR 01-07 15:09:38,449 (JDBCExceptionReporter.java:logExceptions:72)  -Incorrect arguments to mysql_stmt_execute
ERROR 01-07 15:09:38,452 (AbstractFlushingEventListener.java:performExecutions:277)  -Could not synchronize database state with session
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
   at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)
   at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80)
   at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
   at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:181)
   at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:226)
   at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
   at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
   at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
   at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.