Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2365

SQLExec query tries to convert (unexpected) result set into objects.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.B2, 4.1.M1
    • Fix Version/s: 4.0.RC1, 4.1.M1
    • Component/s: Core Library
    • Labels:
      None

      Description

      If SQLExec query returns result set it fails as Cayenne tries to convert it into persistent objects, but there are no ClassDescriptor (even if there is this is not intended behavior).

      One example of such query can be MySQL OPTIMIZE TABLE clause, that returns operation result.
      But simple select can be used to test this:

      QueryResult result = SQLExec.query("SELECT * FROM ARTIST").execute(context);
      

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              ntimofeev Nikita Timofeev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: