From 557900cd7d396b3b65518193d52b3047c3e46452 Mon Sep 17 00:00:00 2001 From: Denis Glazachev Date: Fri, 28 Feb 2020 09:46:35 +0400 Subject: [PATCH] Fix tests --- driver/test/statement_parameters_it.cpp | 11 ++++------- driver/utils/type_info.h | 5 +++++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/driver/test/statement_parameters_it.cpp b/driver/test/statement_parameters_it.cpp index e2394ab99..eb123e8fc 100755 --- a/driver/test/statement_parameters_it.cpp +++ b/driver/test/statement_parameters_it.cpp @@ -603,9 +603,6 @@ TEST_P(ParameterColumnRoundTripDecimalAsStringSymmetric, Execute) { INSTANTIATE_TEST_SUITE_P(TypeConversion, ParameterColumnRoundTripDecimalAsStringSymmetric, ::testing::Values( - - // TODO: do DECIMALs have to not start with dot? - "0", "12345", "-12345", @@ -615,11 +612,11 @@ INSTANTIATE_TEST_SUITE_P(TypeConversion, ParameterColumnRoundTripDecimalAsString "12345.001002003000", "100000000000000000", "-100000000000000000", - ".000000000000000001", - "-.000000000000000001", + "0.000000000000000001", + "-0.000000000000000001", "999999999999999999", "-999999999999999999", - ".999999999999999999", - "-.999999999999999999" + "0.999999999999999999", + "-0.999999999999999999" ) ); diff --git a/driver/utils/type_info.h b/driver/utils/type_info.h index 968dc2cfc..a8447a32a 100755 --- a/driver/utils/type_info.h +++ b/driver/utils/type_info.h @@ -586,6 +586,11 @@ template <> struct is_string_data_source_type struct is_string_data_source_type + : public std::true_type +{ +}; + template inline constexpr bool is_string_data_source_type_v = is_string_data_source_type::value; // Used to avoid duplicate specializations in platforms where 'std::int32_t' or 'std::int64_t' are typedef'd as 'long'.