-->
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: Missing comma in querry
PostPosted: Fri Feb 25, 2005 2:26 am 
Newbie

Joined: Fri Feb 25, 2005 2:17 am
Posts: 1
Hi

I am using xwiki which uses hibernate and MYSQL. I have changed is to use postgres and every thing works fine except I get an error. It appears that Hibernate is not generating an SQL correctly missing out a comma in the ORDER BY clause.

I have update xwiki from hibernate 2 to 3 and get the exact same error which would point to an xwiki problem. I have search the xwiki code but cant find anything.

I have spent 2 days trying to trace this and am getting no closer.

Any suggestions ?

Example Error:
Hibernate: select distinct xwikidocum0_.XWD_WEB as col_0_0_, xwikidocum0_.XWD_NAME as col_1_0_ from xwikidoc xwikidocum0_ where (xwikidocum0_.XWD_CONTENT like '%%' ) order by xwikidocum0_.XWD_DATE desc xwikidocum0_.XWD_WEB , xwikidocum0_.XWD_NAME limit ?
23:47:00,049 WARN http80-Processor23 http://xxx/xwiki/bin/view/Main/WebSearch JDBCExceptionReporter:logExceptions:57 - SQL Error: 0, SQLState: 42601
23:47:00,051 ERROR http80-Processor23 http://xxx/xwiki/bin/view/Main/WebSearch JDBCExceptionReporter:logExceptions:58 - ERROR: syntax error at or near "xwikidocum0_"


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.