Can't use distinct in queries on tables with CLOB types in Oracle

XMLWordPrintable

    • Type: Bug
    • Resolution: Timed out
    • Priority: Medium
    • N/A
    • Affects Version/s: 2.10.6, 3.0.1, 3.6.1
    • Component/s: None
    • Severity 2 - Major
    • 28

      In Oracle, you can't use "distinct" in queries on tables with CLOB types. Hibernate isn't aware of this, a known bug: https://hibernate.atlassian.net/browse/HHH-3606

      This impacts the new permissions checking.

      Exception:

      013-06-25 14:51:57,701 WARN [qtp572487432-222 ] org.hibernate.util.JDBCExceptionReporter JDBCExceptionReporter-logExceptions - SQL Error: 932, SQLState: 42000
      2013-06-25 14:51:57,702 ERROR [qtp572487432-222 ] org.hibernate.util.JDBCExceptionReporter JDBCExceptionReporter-logExceptions - ORA-00932: inconsistent datatypes: expected - got CLOB
      
      2013-06-25 14:51:57,703 ERROR [qtp572487432-222 ] com.atlassian.plugins.rest.common.error.jersey.ThrowableExceptionMapper ThrowableExceptionMapper-toResponse - Uncaught exception thrown by REST service
      org.hibernate.exception.SQLGrammarException: could not execute query
      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:92)
      

            Assignee:
            Unassigned
            Reporter:
            Gurleen Anand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: