Skip to content

Commit aeaf8b5

Browse files
authored
Merge pull request #289 from Mytherin/noindentonquery
Remove indentations in COPY queries
2 parents f6ea049 + 8519761 commit aeaf8b5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/postgres_scanner.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -252,16 +252,12 @@ static void PostgresInitInternal(ClientContext &context, const PostgresBindData
252252
if (bind_data->table_name.empty()) {
253253
D_ASSERT(!bind_data->sql.empty());
254254
lstate.sql = StringUtil::Format(
255-
R"(
256-
COPY (SELECT %s FROM (%s) AS __unnamed_subquery %s) TO STDOUT (FORMAT "binary");
257-
)",
255+
R"(COPY (SELECT %s FROM (%s) AS __unnamed_subquery %s) TO STDOUT (FORMAT "binary");)",
258256
col_names, bind_data->sql, filter);
259257

260258
} else {
261259
lstate.sql = StringUtil::Format(
262-
R"(
263-
COPY (SELECT %s FROM %s.%s %s) TO STDOUT (FORMAT "binary");
264-
)",
260+
R"(COPY (SELECT %s FROM %s.%s %s) TO STDOUT (FORMAT "binary");)",
265261
col_names, KeywordHelper::WriteQuoted(bind_data->schema_name, '"'),
266262
KeywordHelper::WriteQuoted(bind_data->table_name, '"'), filter);
267263
}

0 commit comments

Comments
 (0)