[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-7195) Table does not handle quoted catalog
Strong Liu (JIRA)
noreply at atlassian.com
Mon Apr 9 07:28:48 EDT 2012
[ https://hibernate.onjira.com/browse/HHH-7195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Strong Liu resolved HHH-7195.
-----------------------------
Resolution: Fixed
Fix Version/s: 4.1.x
Assignee: Strong Liu
> Table does not handle quoted catalog
> ------------------------------------
>
> Key: HHH-7195
> URL: https://hibernate.onjira.com/browse/HHH-7195
> Project: Hibernate ORM
> Issue Type: Bug
> Components: core
> Affects Versions: 3.5.0-Final
> Reporter: Dmitry Geraskov
> Assignee: Strong Liu
> Fix For: 4.1.x
>
>
> Test case:
> 1. Create Table t = new Table("`my.table`");
> t.setSchema("`my.schema`"):
> t.setCatalog("`my.catalog`"):
> //add some columns
> t.sqlCreateString(someDialect, someMapping, null, null);
> //create table `my.catalog`."my.schema"."my.table" (...)
> t.setCatalog("my.catalog"):
> t.sqlCreateString(someDialect, someMapping, null, null);
> //create table my.catalog."my.schema"."my.table" (...)
> Both variant are wrong. (Dialect#openQuote() returns ")
> The reason is Table doesn't separate quotes and actual name for catalog like does for schema.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list