[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1341?page=c...
]
Strong Liu commented on HHH-1341:
---------------------------------
I cant reproduce this issue with both hibernate 3.5.x and 3.3.2, with mysql connector
5.1.8.
I used the test org.hibernate.test.pagination.PaginationTest, you can found it in
hibernate testsuite, please let me know if you can reproduce it and if possible, attache a
runnable test case(pojo + hbm), thanks
Query.setMaxResults does not work with Mysql Connector version 3.1.6,
but works with 3.0.14
-------------------------------------------------------------------------------------------
Key: HHH-1341
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1341
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.1
Environment: Hibernate 3.1, Mysql Server 4.1.3, Mysql Connector 3.1.6 bzw.
3.0.14, JRE 1.5.0_06, winxp
Reporter: Stefan Reger
Assignee: Strong Liu
Priority: Minor
With Mysql Connector version 3.1.6: Setting query.setMaxResults(1000) results in console
output:
"Hibernate: select [...] limit ?
13:38:47,296 WARN JDBCExceptionReporter:71 - SQL Error: 1064, SQLState: 42000
13:38:47,296 ERROR JDBCExceptionReporter:72 - You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right syntax to use near
'?' at line 1"
The query without setting the result limit succeeds.
Mysql Connector 3.0.14 works perfectly. Please verify.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira