[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-981?page=co... ]
Ondra Žižka commented on HHH-981:
---------------------------------
Oops. @Table(name="`when`")., NOT @Entity(name="`when`").
> MySQL query fails when table name is "column"
> ---------------------------------------------
>
> Key: HHH-981
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-981
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.0.5
> Environment: Hibernate 3.0.5, MySQL 4.1.14
> Reporter: Karl Shea
> Priority: Minor
> Original Estimate: 10m
> Remaining Estimate: 10m
>
> I am developing a newspaper website, and I have a table named "column." MySQL chokes on this, because "column" is a keyword. To fix this problem, surround any table name with '`' (grave accent) when using the MySQL dialect, the same as the MySQL Query Browser does.
--
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
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-981?page=co... ]
Ondra Žižka commented on HHH-981:
---------------------------------
Since this is quite high in Google search results, here's a (current) link:
http://docs.jboss.org/hibernate/core/3.6/reference/en-US/html_single/#map...
In short, you use @Column(name="`select`") or @Entity(name="`when`"). Dialect will use proper quotation.
> MySQL query fails when table name is "column"
> ---------------------------------------------
>
> Key: HHH-981
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-981
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.0.5
> Environment: Hibernate 3.0.5, MySQL 4.1.14
> Reporter: Karl Shea
> Priority: Minor
> Original Estimate: 10m
> Remaining Estimate: 10m
>
> I am developing a newspaper website, and I have a table named "column." MySQL chokes on this, because "column" is a keyword. To fix this problem, surround any table name with '`' (grave accent) when using the MySQL dialect, the same as the MySQL Query Browser does.
--
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
Rewrite OgmTestCase: broken in a few ways
-----------------------------------------
Key: OGM-45
URL: http://opensource.atlassian.com/projects/hibernate/browse/OGM-45
Project: Hibernate OGM
Issue Type: Improvement
Reporter: Emmanuel Bernard
The sessionFactory handling (sessions) expect:
- to reuse the same sessionFActory across test (good)
- does not close the sessionfactory during the latest test
this model works if everyone extends OgmTestCase but that's not true.
=> the test suite fails when used in a cluster
We should get rid of this session factory reuse code / assumption entirely:
- done by closing and nullifying the sessions object on tearDown
The code should be cleaned up though
--
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