Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-28533

Hibernate date functions not correctly translated in Oracle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.5.0
    • Component/s: Sitestats
    • Labels:
      None
    • Environment:
      Oracle
    • Previous Issue Keys:
      STAT-8

      Description

      Hibernate doesn't translate the hibernate functions year(), month(), day() to Oracle, instead, is passes these directly to native SQL.
      A temporary fix is to implement affected queries with Query.createSQLQuery() and use the "to_date()" Oracle function.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nfernandes Nuno Fernandes (Inactive)
                Reporter:
                nfernandes Nuno Fernandes (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code