yash wrote:
Hibernate: select test0_.id as id, test0_.name as name0_, test0_.age as age0_, test0_.company as company0_ from test test0_ limit ?, ?
I don't believe MySQL supports using "?" parameter substituion in the LIMIT clause, my JDBC code has a special case to always provided an unquoted integer at this point.
Maybe the Hibernate Dialect code used to do the right thing? Maybe 4.1 or 5.0 support the question mark but my 4.0 does not when used from the C or Perl APIs.
Can you run Hibernate 2 and confirm the sql output shows a question mark or a number there ?
Maybe you can write a raw JDBC test case to confirm ?