Updates
This commit is contained in:
@@ -312,8 +312,9 @@ export default function sqlGenerator<
|
||||
return null;
|
||||
existingJoinTableNames.push(joinTableName);
|
||||
|
||||
if (joinObj.select_sql) {
|
||||
return joinObj.select_sql;
|
||||
if (joinObj.group_concat) {
|
||||
let group_concat = `GROUP_CONCAT(${joinTableName}.${joinObj.group_concat.field}, ${joinObj.group_concat.separator || ","}) AS ${joinObj.group_concat.alias}`;
|
||||
return group_concat;
|
||||
} else if (joinObj.selectFields) {
|
||||
return joinObj.selectFields
|
||||
.map((selectField) => {
|
||||
|
||||
Reference in New Issue
Block a user