Skip to content

Commit eee8730

Browse files
authored
Merge branch 'main' into bugfix/wrong-values-in-group
2 parents 1920959 + d06863b commit eee8730

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/web/src/services/DatabaseServiceWeb.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export default class DatabaseServiceWeb extends DatabaseService {
3838
}
3939

4040
const resultName = `${destination}.${format}`;
41-
const finalSQL = `COPY (${sql}) TO '${resultName}' (FORMAT '${format}');`;
41+
const formatOptions = format === "json" ? ", ARRAY true" : "";
42+
const finalSQL = `COPY (${sql}) TO '${resultName}' (FORMAT '${format}'${formatOptions});`;
4243
const connection = await this.database.connect();
4344
try {
4445
await connection.send(finalSQL);

0 commit comments

Comments
 (0)