Skip to content

Commit

Permalink
MONDRIAN: support db2 as sql dialect. added test for captions.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 3481]
  • Loading branch information
hhaas committed Apr 20, 2005
1 parent fcb42ff commit dadc728
Show file tree
Hide file tree
Showing 6 changed files with 648 additions and 0 deletions.
6 changes: 6 additions & 0 deletions demo/FoodMart.xml
Expand Up @@ -149,6 +149,9 @@ fname + ' ' + lname
</SQL>
<SQL dialect="derby">
"customer"."fullname"
</SQL>
<SQL dialect="db2">
CONCAT(CONCAT("fname", ' '), "lname")
</SQL>
<SQL dialect="generic">
fullname
Expand Down Expand Up @@ -477,6 +480,9 @@ fname + ' ' + lname
</SQL>
<SQL dialect="derby">
"customer"."fullname"
</SQL>
<SQL dialect="db2">
CONCAT(CONCAT("fname", ' '), "lname")
</SQL>
<SQL dialect="generic">
fullname
Expand Down
1 change: 1 addition & 0 deletions src/main/mondrian/olap/Mondrian.xml
Expand Up @@ -711,6 +711,7 @@ Revision is $Id$
<Value>mssql</Value>
<Value>sybase</Value>
<Value>derby</Value>
<Value>db2</Value>
</Attribute>
<CData/>
</Element>
Expand Down
2 changes: 2 additions & 0 deletions src/main/mondrian/rolap/sql/SqlQuery.java
Expand Up @@ -374,6 +374,8 @@ private String getBestName() {
best = "sybase";
} else if (isCloudscape() || isDerby()) {
best = "derby";
} else if (isDB2()) {
best = "db2";
} else {
best = "generic";
}
Expand Down

0 comments on commit dadc728

Please sign in to comment.