-->
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.  [ 1 post ] 
Author Message
 Post subject: "Top 2" inserted in my native query
PostPosted: Mon Dec 08, 2008 5:58 pm 
Newbie

Joined: Mon Dec 08, 2008 5:51 pm
Posts: 1
Hibernate version: jboss 5.0

Name and version of the database you are using: SQL Server 2005

I'm trying to execute this native query calling stored proc: EXEC sp_c3_SEQ_SES; it used to work with jBoss 4.2.x, now I'm migrating to jBoss 5.0.0 GA and Hibernate seems to add a "top 2" right in the middle of my query: see below

Code:
15:07:02,400 INFO  [STDOUT] Hibernate: EXEC sp_c3_SEQ top 2_SES;

15:07:02,416 WARN  [JDBCExceptionReporter] SQL Error: 156, SQLState: S0001

15:07:02,416 ERROR [JDBCExceptionReporter] Incorrect syntax near the keyword 'top'.


Is there something i have to configure not to have this top 2 inserted in my query ? I'm doing a .getSingleResult() if it helps.

Thank you


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

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.