-->
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: MsAccess syntax error with join syntax. (2 parents)
PostPosted: Fri Jan 12, 2007 9:16 am 
Beginner
Beginner

Joined: Fri Jul 29, 2005 10:34 am
Posts: 25
Hibernate version: 1.2 Beta3

Name and version of the database you are using:
MsAccess 2003

The generated SQL (show_sql=true):

This gets generated for a simple criteria with 2 joins:
SELECT *
FROM SupplierBooks this_
inner join [Books] books1_ on this_.ISBNNumber=books1_.ISBNNumber
inner join [Suppliers] suppliers2_ on this_.SupplierID=suppliers2_.SupplierId

and the correct (at least 1 syntax that works) is :
SELECT *
FROM ( SupplierBooks this_
inner join [Books] books1_ on this_.ISBNNumber=books1_.ISBNNumber )
inner join [Suppliers] suppliers2_ on this_.SupplierID=suppliers2_.SupplierId

Note: Please notice the () in the form clause.


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.