[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3044) Dialect.getSchemaSeparator() defined as char whereas sybase uses '..' as schema delimiter

Gail Badner (JIRA) noreply at atlassian.com
Thu Feb 19 17:43:38 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32456#action_32456 ] 

Gail Badner commented on HHH-3044:
----------------------------------

I believe that the '..' separator you mention refers to the default schema.

With the connection URL containing the dbname, as in:
   hibernate.connection.url jdbc:sybase:Tds:<server>:<port>/<dbname>

I have not tried Sybase ASE 12, but using Sybase ASE 15 with the DB name in the connection URL, I had no problems setting hibernate.default_schema to any of the following.
   hibernate.default_schema dbname.dbo
   hibernate.default_schema dbname.
   hibernate.default_schema .

Please check to see if any of these will work for you.

> Dialect.getSchemaSeparator() defined as char whereas sybase uses '..' as schema delimiter
> -----------------------------------------------------------------------------------------
>
>                 Key: HHH-3044
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3044
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.0.5
>         Environment: Hibernate 3.0.5 used with Sybase ASE 12.5.4
>            Reporter: Alexis Haumont
>            Assignee: Gail Badner
>
> With Sybase ASE, the naming pattern for schema indexes objects is :
>  schema..tableName
> But the abstract class org.hibernate.dialect.Dialect has the following method signature :
> 	/**
> 	 * The separator between the schema/catalog/tablespace name and the table name.
> 	 */
> 	public char getSchemaSeparator() {
> 		return '.';
> 	}
> It should be :
> 	public String getSchemaSeparator() {
> 		return ".";
> 	}
> and as such could ne overriden in SybaseDialect as :
> 	public String getSchemaSeparator() {
> 		return "..";
> 	}

-- 
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list