Commit Graph

6 Commits

Author SHA1 Message Date
Vasily Nemkov
33b422d8cc Argument validation fixes
* Fixed crash when converting nullptr char pointer to std::string
* Updatedexepected error code for toDateTime64
2019-12-26 00:07:53 +03:00
Vasily Nemkov
ded1ac0bc9 Test cases for now64 and toDateTime64 2019-12-24 16:16:23 +03:00
Vasily Nemkov
6fee967acd now64() tests 2019-12-18 19:10:26 +03:00
Vasily Nemkov
f56b2b64f2 Post-review refactoring and tests for DateTime64 and Decimal.
* put functions in DecimalFunctions into DecimalUtils namespace
* fixed possible buffer overflow in parseDateTimeBestEffortImpl
* fixed readDateTimeTextImpl not to require fractional part separator
  (if fractional part is missing)
* Tests for code from DecimalFunctions.h
* Fixed serializing DateTime64 to string with writeDateTimeText(), fixed tests
2019-12-11 06:58:49 +03:00
Vasily Nemkov
96809d0c77 Fixed test to not fail under UB-sanitizer + extra negative test case for toDateTime64 2019-11-11 08:34:33 +03:00
Vasily Nemkov
5150a3e586 Simplified and renamed basic DateTime64 test. 2019-11-05 16:40:23 +03:00