CONCPP-61 Fix of build with VS2015

It choked on const initialization with constexpr

Second possible issue was with
REASON_UNKNOWN in the ClientInfoStatus enum. It clashes with define in
one of Windows headers(Winreg.h). Added undersore prefix to the name.

Also fixed most often warning there.

Additionaly the commit contains some fixes in test faramework and in
tests.
This commit is contained in:
Lawrin Novitsky
2021-02-04 16:37:48 +01:00
parent ffb3ba5776
commit 623eefe3f2
12 changed files with 60 additions and 53 deletions

View File

@ -1,5 +1,5 @@
/************************************************************************************
Copyright (C) 2020 MariaDB Corporation AB
Copyright (C) 2020, 2021 MariaDB Corporation AB
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@ -46,7 +46,7 @@ public:
SQLString();
virtual ~SQLString();
static const std::size_t npos= std::string::npos;
static constexpr std::size_t npos{static_cast<std::size_t>(-1)};
const char * c_str() const;
SQLString& operator=(const SQLString&);
//operator std::string() { return std::string(this->c_str(), this->length()); }