Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
traceon committed Mar 2, 2020
1 parent e4196aa commit 557900c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 4 additions & 7 deletions driver/test/statement_parameters_it.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
)
);
5 changes: 5 additions & 0 deletions driver/utils/type_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,11 @@ template <> struct is_string_data_source_type<DataSourceType<DataSourceTypeId::F
{
};

template <> struct is_string_data_source_type<WireTypeAnyAsString>
: public std::true_type
{
};

template <class T> inline constexpr bool is_string_data_source_type_v = is_string_data_source_type<T>::value;

// Used to avoid duplicate specializations in platforms where 'std::int32_t' or 'std::int64_t' are typedef'd as 'long'.
Expand Down

0 comments on commit 557900c

Please sign in to comment.