[ 
https://issues.apache.org/jira/browse/DERBY-2231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-2231:
-----------------------------------

    Urgency: Normal
     Labels: derby_triage10_10  (was: )
    
> Materialize/optimize an invariant, non-correlated scalar subquery in the 
> WHERE clause
> -------------------------------------------------------------------------------------
>
>                 Key: DERBY-2231
>                 URL: https://issues.apache.org/jira/browse/DERBY-2231
>             Project: Derby
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 10.2.2.0
>            Reporter: Christian d'Heureuse
>              Labels: derby_triage10_10
>         Attachments: testcase1.sql
>
>
> The attached test case shows that an invariant, non-correlated scalar 
> subquery in the WHERE clause is not materialized/optimized.
> A scalar subquery is only allowed to return a single row with a single 
> column. If the subquery contains no references to outside fields, it should 
> be replaced by a constant value, before the main query is executed.
> see also DERBY-1733

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to