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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.B2, 4.1.M1
    • 4.0.RC1, 4.1.M1
    • Core Library
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: