Skip to content

Commit

Permalink
MONDRIAN: MySQL's JDBC driver is returning a byte[] when we call getO…
Browse files Browse the repository at this point in the history
…bject for a

    string expression, and it causes a test exception. Grrr. Try to placate it
    using a cast.

[git-p4: depot-paths = "//open/mondrian-release/3.2/": change = 14108]
  • Loading branch information
julianhyde committed Feb 10, 2011
1 parent 99e2e57 commit e83d278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsrc/main/mondrian/test/CaptionTest.java
Expand Up @@ -166,7 +166,7 @@ public static class MyFoodmart implements DynamicSchemaProcessor {
+ "cstr(the_year) + '-12-31'\n"
+ " </SQL>\n"
+ " <SQL dialect=\"mysql\">\n"
+ "concat(`the_year`, '-12-31')\n"
+ "concat(cast(`the_year` as char(4)), '-12-31')\n"
+ " </SQL>\n"
+ " <SQL dialect=\"generic\">\n"
+ "\"the_year\" || '-12-31'\n"
Expand Down

0 comments on commit e83d278

Please sign in to comment.