Fix for 996069: Incorrect RES.001 when using aggregate functions

This commit is contained in:
Brian Fraser
2012-11-02 01:18:10 -03:00
parent 4b5c8969f0
commit 1aa154d6c6
3 changed files with 7 additions and 0 deletions

View File

@@ -471,6 +471,11 @@ my @cases = (
query => q{select NULL, 1, COUNT(*), @@time_zone, foo as field2 from t1 group by field2},
advice => [qw(CLA.001)],
},
{
name => 'Bug 996069: wrong RES.001',
query => q{SELECT cola, MAX(colb) FROM table WHERE cola = 123 GROUP BY cola},
advice => [qw()],
},
);
# Run the test cases.