Skip to content

Commit

Permalink
MONDRIAN: use single quotes instead of double quotes for Mysql in ord…
Browse files Browse the repository at this point in the history
…er to achieve "ANSI MODE" compliance.

[git-p4: depot-paths = "//open/mondrian/": change = 1592]
  • Loading branch information
hhaas committed Mar 18, 2004
1 parent ab71879 commit 5e55e24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demo/FoodMart.xml
Expand Up @@ -135,7 +135,7 @@ fname + ' ' + lname
"fname" || ' ' || "lname"
</SQL>
<SQL dialect="mysql">
CONCAT(`customer`.`fname`, " ", `customer`.`lname`)
CONCAT(`customer`.`fname`, ' ', `customer`.`lname`)
</SQL>
<SQL dialect="generic">
"lname"
Expand Down
10 changes: 5 additions & 5 deletions src/main/mondrian/test/BasicQueryTest.java
Expand Up @@ -498,7 +498,7 @@ public void testDrillThrough2() {
String fname_plus_lname;
if (jdbc_url.toLowerCase().indexOf("mysql") >= 0 ) {
// Mysql would generate "CONCAT( ... )"
fname_plus_lname = " CONCAT(`customer`.`fname`, \" \", `customer`.`lname`) as `Name`,";
fname_plus_lname = " CONCAT(`customer`.`fname`, ' ', `customer`.`lname`) as `Name`,";
} else {
fname_plus_lname = " fname + ' ' + lname as `Name`,";
}
Expand Down Expand Up @@ -3709,9 +3709,9 @@ public void run(int i) {

/**
* Makes sure that the expression <code>
*
*
* [Measures].[Unit Sales] / ([Measures].[Unit Sales], [Product].[All Products])
*
*
* </code> depends on the current member of the Product dimension, although
* [Product].[All Products] is referenced from the expression.
*/
Expand All @@ -3723,8 +3723,8 @@ public void testDependsOn() {
" {[Measures].[Unit Sales]} ON columns, " + nl +
" {[Product].[All Products].[Food].[Deli], [Product].[All Products].[Food].[Frozen Foods]} ON rows " + nl +
"from [Sales] " + nl +
"where ([Customers].[my], [Time].[1997])" + nl,
"where ([Customers].[my], [Time].[1997])" + nl,

"Axis #0:" + nl +
"{[Customers].[my], [Time].[1997]}" + nl +
"Axis #1:" + nl +
Expand Down

0 comments on commit 5e55e24

Please sign in to comment.