You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Christian d'Heureuse (JIRA)" <ji...@apache.org> on 2007/01/11 03:09:27 UTC

[jira] Updated: (DERBY-2231) Materialize/optimize an invariant, non-correlated scalar subquery in the WHERE clause

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

Christian d'Heureuse updated DERBY-2231:
----------------------------------------

    Attachment: testcase1.sql

> 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
>         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 contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira