Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1941

Criteria query returns wrong result when query cache is enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.1, 2.0.2
    • 2.1.0, 2.2.0
    • datacache, jpa
    • None
    • The issue was detected when using a criteria query against Oracle database.

    Description

      When query cache is not enabled the queries return these lines: Query 1: 1 Query 2: 2 This is correct.
      When query cache is enabled the queries return these lines: Query 1: 1 Query 2: 1 This is wrong.

      See attached test case (Netbeans project). ojdbc14.jar and openjpa-all-2.0.1.jar must be added to the project.

      Attachments

        1. jpacriteriaquerycacheissue.sql
          0.9 kB
          Guido Mueller
        2. JpaCriteriaQueryCacheIssue.zip
          14 kB
          Guido Mueller

        Issue Links

          Activity

            People

              mikedd Michael Dick
              guido_coba Guido Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: