Skip to content

Commit 3bd19af

Browse files
committed
Revert "* Fixed internal/xerrors/transportError.Error() method (replaced line feed to carriage return)"
This reverts commit 7d1417a.
1 parent d685bc7 commit 3bd19af

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
* Fixed `internal/xerrors/transportError.Error()` method (replaced `\n` to `\r`)
21
* Added `sugar.GenerateDeclareSection()` helper for make declare section in `YQL`
32
* Added check when parameter name not started from `$` and automatically prepends it to name
43
* Refactor connection closing

internal/xerrors/transport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (e *transportError) Error() string {
7474
if len(e.details) > 0 {
7575
b.WriteString(", details:")
7676
for _, detail := range e.details {
77-
b.WriteString(fmt.Sprintf("\r- %v", detail))
77+
b.WriteString(fmt.Sprintf("\n- %v", detail))
7878
}
7979
}
8080
}

sugar/params.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func GenerateDeclareSection(params *table.QueryParameters) string {
2222
params.Each(func(name string, v types.Value) {
2323
names = append(names, name)
2424
declares[name] = fmt.Sprintf(
25-
"DECLARE %s AS %s;\r",
25+
"DECLARE %s AS %s;\n",
2626
name,
2727
value.TypeFromYDB(v.ToYDB().GetType()).String(),
2828
)

0 commit comments

Comments
 (0)