summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorTom Lane1999-12-09 05:58:56 +0000
committerTom Lane1999-12-09 05:58:56 +0000
commitf7f41c7c8c34edec610240405569ed6e0954e03e (patch)
tree39c0737d7aceed48126cf0f20da82fd4c2442b5b /src/test
parentd65a27f9509e8cbd0a0d8a58597bd096c2a22207 (diff)
Replace generic 'Illegal use of aggregates' error message with one that
shows the specific ungrouped variable being complained of. Perhaps this will reduce user confusion...
Diffstat (limited to 'src/test')
-rw-r--r--src/test/regress/expected/select_implicit.out4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/regress/expected/select_implicit.out b/src/test/regress/expected/select_implicit.out
index a9b94c9b1e1..427198fb4ad 100644
--- a/src/test/regress/expected/select_implicit.out
+++ b/src/test/regress/expected/select_implicit.out
@@ -32,7 +32,7 @@ count
(6 rows)
QUERY: SELECT count(*) FROM test_missing_target GROUP BY a ORDER BY b;
-ERROR: Illegal use of aggregates or non-group column in target list
+ERROR: Attribute test_missing_target.b must be GROUPed or used in an aggregate function
QUERY: SELECT count(*) FROM test_missing_target GROUP BY b ORDER BY b;
count
-----
@@ -194,7 +194,7 @@ count
(4 rows)
QUERY: SELECT count(a) FROM test_missing_target GROUP BY a ORDER BY b;
-ERROR: Illegal use of aggregates or non-group column in target list
+ERROR: Attribute test_missing_target.b must be GROUPed or used in an aggregate function
QUERY: SELECT count(b) FROM test_missing_target GROUP BY b/2 ORDER BY b/2;
count
-----