File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments