[ https://issues.apache.org/jira/browse/CAY-2365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikita Timofeev closed CAY-2365. -------------------------------- Resolution: Fixed *4.1*: https://github.com/apache/cayenne/commit/6c17c0216fa533d54eb77aa619aa263363a75dce *4.0*:https://github.com/apache/cayenne/commit/6c866e1979bc125cb7cd7a60084466e64ce68081 > 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)