[
https://issues.apache.org/jira/browse/DERBY-4045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669671#action_12669671
]
John T. Dow commented on DERBY-4045:
------------------------------------
I vote for fixing the SQL because WHERE SELECT MAX is how one finds the most
recently entered row in a table, which I find I want to do quite often. And I
want to update it once I get it.
> Subquery causes error: 'updateString' not allowed because the ResultSet is
> not an updatable ResultSet
> -----------------------------------------------------------------------------------------------------
>
> Key: DERBY-4045
> URL: https://issues.apache.org/jira/browse/DERBY-4045
> Project: Derby
> Issue Type: Bug
> Components: Documentation, SQL
> Reporter: John T. Dow
>
> Embedded Derby (don't know about client) demoted an updatable result set
> apparently due to a nested query.
> select * from orders where (orders.recordno = (select max(orders.recordno)
> from orders))
> Fix if possible.
> If it can't be fixed, the documentation should be changed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.