Skip to content

Commit

Permalink
fix: Added correct string concat for Mysql. (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlkennedy authored and paveltiunov committed Jul 16, 2019
1 parent f910a56 commit 287411b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/cubejs-schema-compiler/adapter/MysqlQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ class MysqlQuery extends BaseQuery {
).join(' UNION ALL ');
return `SELECT TIMESTAMP(dates.f) date_from, TIMESTAMP(dates.t) date_to FROM (${values}) AS dates`;
}

concatStringsSql(strings) {
return `CONCAT(${strings.join(", ")})`;
}

}

module.exports = MysqlQuery;

0 comments on commit 287411b

Please sign in to comment.