× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
Ron.Stewart reported 2011-11-02T14:07:05Z  · last modified 2011-11-06T02:19:06Z

"CASE" syntax-colored in SQL Editor as function rather than keyword


Priority Low
Complexity Unknown
Component Q Analyzer - SQL Formatter
Version 10.0

The SQL "CASE" keyword is syntax-colored as a function call in the Query Analyzer, even when used within the context of a CASE/WHEN/ELSE/END clause such as the following:

 

   SELECT
     agyEPActCovered,
     agyGroup,
     agyAbbrev,
     agyName,
          SUM(v.vehCount) AS agyInv,
          SUM(CASE WHEN v.vehExecFleetAbbrev = 'Y' THEN v.vehCount ELSE 0 END) AS agyEFInv,
          SUM(CASE WHEN v.vehExecFleetAbbrev = 'N' THEN v.vehCount ELSE 0 END) AS agyNonEFInv1,
          SUM(CASE WHEN v.vehExecFleetAbbrev <> 'Y' THEN v.vehCount ELSE 0 END) AS agyNonEFInv2,
          SUM(
            CASE
              WHEN v.vehExecFleetAbbrev = 'Y' THEN
                CASE
                  WHEN v.vehAFV = 'Yes' AND (v.vehLayoutType = 'LSVs' OR (v.vehLayoutType = 'Sedans' AND v.vehLayoutSize IN ('Subcompact','Compact','Midsize'))) THEN v.vehCount
                  ELSE 0
                END
              ELSE 0
            END
          ) AS agyEFCompliant,
          SUM(
            CASE
              WHEN v.vehExecFleetAbbrev = 'Y' THEN
                CASE
                  WHEN v.vehAFV = 'Yes' AND (v.vehLayoutType = 'LSVs' OR (v.vehLayoutType = 'Sedans' AND v.vehLayoutSize IN ('Subcompact','Compact','Midsize'))) THEN 0
                  ELSE v.vehCount
                END
              ELSE 0
            END
          ) AS agyEFNoncompliant
          
 
   FROM
     usv_EPAct_Vehicles AS v
   WHERE 0 = 0
     AND v.dataYear = 2011
     AND v.agyID NOT IN (1,2,2393)
     AND v.vehRowType = 'Inventory'
     AND v.vehDataType = 'Actual'
   GROUP BY
     agyEPActCovered,
     agyGroup,
     agyAbbrev,
     agyName
 

Issue #6143

Closed
Fixed
Resolved 2011-11-02T21:56:53Z
 
 
Completion
No due date
Fixed Build 10.0.2_01
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017