cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-2365) SQLExec query tries to convert (unexpected) result set into objects.
Date Thu, 21 Sep 2017 14:25:00 GMT
Nikita Timofeev created CAY-2365:
------------------------------------

             Summary: SQLExec query tries to convert (unexpected) result set into objects.
                 Key: CAY-2365
                 URL: https://issues.apache.org/jira/browse/CAY-2365
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 4.0.B2, 4.1.M1
            Reporter: Nikita Timofeev
            Assignee: Nikita Timofeev
            Priority: Minor
             Fix For: 4.0.B3, 4.1.M1


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:
{code}
QueryResult result = SQLExec.query("SELECT * FROM ARTIST").execute(context);
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message