Revision 46104 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.h2spatial/org.gvsig.h2spatial.h2gis132/org.gvsig.h2spatial.h2gis132.provider/src/test/resources/org/gvsig/fmap/dal/store/h2/resultSetForSetProvider.sql

View differences:

resultSetForSetProvider.sql
70 70
    "Bool2", "String", "Bool3", "Double", "Bool4", "Float", "Bool5", "Decimal", 
71 71
    NVL2("Geometry",ST_AsBinary("Geometry"),NULL), 
72 72
    ("ID" * 2) AS "Compu1", 
73
    (("Long" + 10) + (("ID" * 2))) AS "Compu2" 
73
    (("Long" + 10) + ("ID" * 2)) AS "Compu2" 
74 74
FROM "PUBLIC"."test" ORDER BY "ID" ASC;
75 75

  
76 76
-- Computed Extra column 1
......
78 78
    "Bool2", "String", "Bool3", "Double", "Bool4", "Float", "Bool5", "Decimal", 
79 79
    NVL2("Geometry",ST_AsBinary("Geometry"),NULL), 
80 80
    ("ID" * 2) AS "Compu1", 
81
    (("Long" + 10) + (("ID" * 2))) AS "Extra1" 
81
    (("Long" + 10) + ("ID" * 2)) AS "Extra1" 
82 82
FROM "PUBLIC"."test" ORDER BY "ID" ASC;
83 83

  
84 84
-- Computed Extra column 2
......
86 86
    "Bool2", "String", "Bool3", "Double", "Bool4", "Float", "Bool5", "Decimal", 
87 87
    NVL2("Geometry",ST_AsBinary("Geometry"),NULL), 
88 88
    ("ID" * 2) AS "Extra1", 
89
    (("Long" + 10) + (("ID" * 2))) AS "Extra2" 
89
    (("Long" + 10) + ("ID" * 2)) AS "Extra2" 
90 90
FROM "PUBLIC"."test" ORDER BY "ID" ASC;
91 91

  
92 92
-- Computed Extra column with where
......
94 94
    "Bool2", "String", "Bool3", "Double", "Bool4", "Float", "Bool5", "Decimal", 
95 95
    NVL2("Geometry",ST_AsBinary("Geometry"),NULL), 
96 96
    ("ID" * 2) AS "Compu1", 
97
    (("Long" + 10) + (("ID" * 2))) AS "Extra1" 
98
FROM "PUBLIC"."test" WHERE (((("Long" + 10) + (("ID" * 2)))) > 10) ORDER BY ((("Long" + 10) + (("ID" * 2)))) ASC, "ID" ASC;
97
    (("Long" + 10) + ("ID" * 2)) AS "Extra1" 
98
FROM "PUBLIC"."test" WHERE ((("Long" + 10) + (("ID" * 2))) > 10) ORDER BY "Extra1" ASC, "ID" ASC;
99 99

  
100 100
-- Group by with computed columns and aggregate functions
101 101
SELECT MIN("test"."ID") AS "ID", MAX("test"."Byte") AS "Byte", NULL AS "Bool1", "Long", 
......
105 105
    NULL AS "Geometry", 
106 106
    ("ID" * 2) AS "Compu1", 
107 107
    SUM(("Long" + 300)) AS "Compu2", 
108
    SUM(((20 + "Byte") + (("ID" * 2)))) AS "Extra2", 
108
    SUM(((20 + "Byte") + ("ID" * 2))) AS "Extra2", 
109 109
    (("Long" + 10) + (("ID" * 2))) AS "Extra1" 
110
FROM "PUBLIC"."test" GROUP BY "test"."Long", "Extra1", "Compu1" ORDER BY "ID" ASC;
110
FROM "PUBLIC"."test" GROUP BY "test"."Long", (("Long" + 10) + (("ID" * 2))), (("ID" * 2)) ORDER BY "ID" ASC;

Also available in: Unified diff