Skip to content

Conversation

@babyTsakhes
Copy link
Collaborator

msgpack_ext: add string() for decimal

Added a decimal type conversion function to a string, added tests for this function. Fixed name of function. Add test for decimal convertion. I tried to write an optimized version, but there is a problem with values when working with BCD, insignificant zeros after the decimal point are lost.

Added #322

Added a decimal type conversion function to a string, added tests for this function.

Added #322
Added a decimal type conversion function to a string, added tests for this function. Fixed buffer for int64.

Added #322
Added a decimal type conversion function to a string, added tests for this function. Fixed name of function.

Added #322
Added a decimal type conversion function to a string, added tests for this function. Fixed name of function. Add test for decimal convertion.

Added #322
@babyTsakhes
Copy link
Collaborator Author

TestTarantoolBCDCompatibility is FAIL.

@babyTsakhes
Copy link
Collaborator Author

return d.Decimal.String() - this method true, but slowly. I will correct the code and comments, at the moment I am looking for a solution to the problem.

Added a datetime type conversion function to a string, added tests for this function.

Added #322
Copy link
Collaborator

@oleg-jukovec oleg-jukovec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, squash commits into a single relevant-one.

return ptr.UnmarshalMsgpack(b)
}

// This method converts Datetime to String - formats to ISO8601.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The go-idiomatic way to comment a method.

Suggested change
// This method converts Datetime to String - formats to ISO8601.
// String converts Datetime to String - formats to ISO8601.

}

func TestDatetimeString(t *testing.T) {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants