[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5471) Not exception thrown when dealing with reserved words on Microsot SQL Server 2008

Maximiliano Gomez Vidal (JIRA) noreply at atlassian.com
Thu Aug 12 10:08:41 EDT 2010


Not exception thrown when dealing with reserved words on Microsot SQL Server 2008
---------------------------------------------------------------------------------

                 Key: HHH-5471
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5471
             Project: Hibernate Core
          Issue Type: Bug
    Affects Versions: 3.2.1
         Environment: Hibernate 3.2.1, Microsoft SQL Server 2008, jTDS JDBC Driver
            Reporter: Maximiliano Gomez Vidal


I have an entity with the properties "user", "type" and "password", all being reserved words in SQL Server 2008.

The exported schema shows the CREATE TABLE statement with the corresponding properties. However, the table is not created because of the use of the reserved word user (type and password are reserved but the creation is not aborted by them).

I'll expect Hibernate to throw an exception as when using reserved words in other RDBMS like MySQL. Instead, it does not report any error and continues with the execution.

-- 
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