Skip to content

Commit 3ec3fea

Browse files
authored
Change separator in SQL query from ';' to '\n'
1 parent 5805ca6 commit 3ec3fea

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/test2413.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ describe('Test 2413 - GROUP_CONCAT with DISTINCT, ORDER BY and SEPARATOR', funct
7575
{region: 'EU', country: 'Germany'},
7676
];
7777
res = alasql(
78-
"SELECT region, GROUP_CONCAT(country ORDER BY country ASC SEPARATOR ';') as countries FROM ? GROUP BY region ORDER BY region",
78+
"SELECT region, GROUP_CONCAT(country ORDER BY country ASC SEPARATOR '\\n') as countries FROM ? GROUP BY region ORDER BY region",
7979
[data]
8080
);
8181
assert.deepEqual(res, [
82-
{region: 'EU', countries: 'France;Germany'},
83-
{region: 'NA', countries: 'Canada;Mexico;USA'},
82+
{region: 'EU', countries: 'France\nGermany'},
83+
{region: 'NA', countries: 'Canada\nMexico\nUSA'},
8484
]);
8585
});
8686
});

0 commit comments

Comments
 (0)