Skip to content

Commit 1eaad6c

Browse files
committed
Fixes
1 parent c0ff915 commit 1eaad6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ydb/public/lib/ydb_cli/commands/ydb_service_table.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ void TCommandExecuteQuery::PrintDataQueryResponse(NTable::TDataQueryResult& resu
532532
}
533533

534534
if (!DiagnosticsFile.empty()) {
535-
TFileOutput file(DiagnosticsFile + ".json");
535+
TFileOutput file(DiagnosticsFile);
536536

537537
NJson::TJsonValue diagnosticsJson(NJson::JSON_MAP);
538538

@@ -817,7 +817,7 @@ bool TCommandExecuteQuery::PrintQueryResponse(TIterator& result) {
817817
}
818818

819819
if (!DiagnosticsFile.empty()) {
820-
TFileOutput file(TStringBuilder() << DiagnosticsFile << ".json");
820+
TFileOutput file(DiagnosticsFile);
821821

822822
NJson::TJsonValue diagnosticsJson(NJson::JSON_MAP);
823823

ydb/public/lib/ydb_cli/commands/ydb_sql.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ int TCommandSql::PrintResponse(NQuery::TExecuteQueryIterator& result) {
245245
}
246246

247247
if (!DiagnosticsFile.empty()) {
248-
TFileOutput file(TStringBuilder() << DiagnosticsFile << ".json");
248+
TFileOutput file(DiagnosticsFile);
249249

250250
NJson::TJsonValue diagnosticsJson(NJson::JSON_MAP);
251251

0 commit comments

Comments
 (0)