CPack generates configs for package and source_package
They both contain CPACK_PACKAGE_FILE_NAME. Somehow after the CPack being
included, be the name CPACK_PACKAGE_FILE_NAME in cmake script the value
from source_package config is accessible.
The merge was done manually copying relevant code changes from 1.1.
In particulary merged the patch for CONCPP-94
Also many changes, that fix real possible issues, that was also present in 1.0 and found while
working on 1.1. For example(but not limited to), there were many cases of incorrect
find_first_of std::string method, where find had to be really used.
79: Updated C/C submodule to the fix of critical cmake error in C/C
80: Fix of setting defualt WITH_SSL value - that has to be CONC_WITH_SSL
variable, rather than WITH_SSL
81: Removed redundant "." from installation paths
Added to README description of two more supported options - useCompression and jdbcCompliantTruncation
Changed error message about required gcc version from >4.8 to >=4.9
Added default value for WITH_SSL, as currently project cannot be
generated without encryption support.
Removed "ga" from tarballs and source package names. While alpha, beta
and rc should be there, ga should not
Plus forgotten in the previous commit removal of Windows Travis build from
"allowed failures"
Added missing headers to msi. Headers now installed into include/mariadb
ALl headers have been renamed from .h to .hpp
ConnCpp.hpp renamed to conncpp.hpp(all small letters)
All headers but conncpp.hpp, have been moved to conncpp subdirectory in
include, and in the msi
All exception classes have got explicit (exported from dll on Windows) copyconstructor
decluration, and definition of those constructors in the connector
library. And to stay on the safe side, all other constructors and
destructors definitions have been moved to library side.
Fixed the error, that few exception methods were declared as
dllimported, and defined in the header at the same time.
This includes fixes of various outstanding bugs in CSPS
Made setDouble to accept long double(CONCPP-55)
static_test and driver_test now make one run with default CSPS, and one
with SSPS
Updated README.md with more options info. Changed desription of some
options in DefaultOptions.cpp. Fixed use of autoReconnect and
localSocket
and bytes, Ints, Longs were not exported.
API change: execute(Large)Batch return reference to const objects,
rather than pointers.
Restructuring of API and internal headers and introducing of new
separate header files.
Added statement testsuite to ctest - that was forgotten
Connector quality set to RC
functionality. Unlike connecting via Driver class,
DriverManager::getConnection methods throw an exception in case
connection could not be established for whatever reason. i.e. also if
the format of url is incorrect and could not be parsed.
DriverManager only permits jdbc:mariadb:// type of url. Well, it's
driver manager after all, and needs to know which driver to invoke.
Changed unit tests to connect via DriverManager
Added use examples to the README.md
Fixed return from false to nullptr in couple of methods of the Statement class. They were added to
remove warnings, bool value is wrong for the methods.
Fixed build of database metadata class test on 32b Windows
DatabaseMetaData didn't return correct server version - the call of the
function setting corresponding properties on connection was lost
somewhere.
String utils have been moved to separate unit(util/String.cpp) from
SQLString.cpp, and added to test framework for testing purposes. In
particular few bugs in the split function have been found.
CONCPP-23 and CONCPP-12 are connected, since good part of warnings were
caused by the SQLString class, and its redesign eleminated them among other
things. CONCPP-22 changes could probably be separated from others, but changed files
could also contain changes for other tickets. And still can be fairly
easy separated in case of need.
SQLString now hides internal string implementation and does not provide
the operator for transparent cast to std::string. While const char*
stays in place. Depending on the compiler, a construction
std::string var= <method_call_returning_SQLString>;
may work or may work not.
std::string var(<method_call_returning_SQLString>);
seems to be more portable.
But in the particular case of a blob fetched with
the getString, using the SQLString variable to accept the value is probably the only
choice(because of possible \0 bytes in the string)
Move constructor has been added.
FIxed possible compilation error - added inclusion of <stdexcept> to
ClassField.h.
Fixed couple of remained errors in connection and bugs tests, where properties
were initialized with bool value.
Also, fixed few compilation warnings(CONCPP-12). 2 of them weren't
harmless and were bugs(assingment instead of comparison in 'if'
condition).
CPACK_ARCHIVE_COMPONENT_INSTALL set to ON happened to be the reason.
From now on, bintars will have directories tree under
mariadb-connector-odbc-<version>-<platform> - basically it will
match file name.
Changed all tests to have configurable via cmake parameters connection
defaults.
cts.sql now uses optional database, and is located in
CMAKE_BINARY_DIR/test