Skip to content

Commit

Permalink
MONDRIAN: Fix DialectTest for Access, Teradata.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 12926]
  • Loading branch information
julianhyde committed Jul 10, 2009
1 parent e9cc865 commit 58587ed
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion testsrc/main/mondrian/test/DialectTest.java
Expand Up @@ -372,7 +372,10 @@ public void testRequiresUnionOrderByExprToBeInSelectClause() {
// derby (yes, lame message)
"Java exception: ': java.lang.NullPointerException'.",
// oracle
"ORA-01785: ORDER BY item must be the number of a SELECT-list expression\n",
"ORA-01785: ORDER BY item must be the number of a SELECT-list "
+ "expression\n",
// teradata
".*The ORDER BY clause must contain only integer constants.",
};
assertQueryFails(sql, errs);
}
Expand Down Expand Up @@ -792,6 +795,13 @@ public void testAllowsSelectNotInGroupBy() throws SQLException {
// mysql (if sql_mode contains ONLY_FULL_GROUP_BY)
"ERROR 1055 (42000): 'foodmart.time_by_day.the_month' isn't in "
+ "GROUP BY",
// access
"\\[Microsoft\\]\\[ODBC Microsoft Access Driver\\] You tried "
+ "to execute a query that does not include the specified "
+ "expression 'the_month' as part of an aggregate function.",
// teradata
".*Selected non-aggregate values must be part of the "
+ "associated group.",
};
assertQueryFails(sql, errs);
}
Expand Down

0 comments on commit 58587ed

Please sign in to comment.