Commit Graph

35 Commits

Author SHA1 Message Date
49009c091b bump the VERSION 2022-10-11 08:33:03 -04:00
9b23a0fa79 Moved cmake option defaults to the separate file
Added bit definition server param array(bulk) capability
Enabled WITH_SIGNCODE option for cmake. It depends on DEVELOPER_ID
option.
2022-07-18 18:42:58 +02:00
0fcefdc4c6 Initial commit for pkg(productbuild) pacakging on MacOS 2022-07-06 19:19:27 +02:00
30dd7649c2 Fix of the buildbot build - install_test config was at wrong place
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.
2022-06-29 23:25:38 +02:00
014f4ac0be Some additions to previous patch + downmerge from 1.1
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.
2022-05-23 23:03:37 +02:00
3fbdf8fa33 TODO-2312 Connector/C++ packages
added install layout for rpm and deb
added packaging for rpm and deb
2021-09-01 23:50:37 +02:00
ad52bb72db bump the VERSION 2021-06-17 10:37:41 -04:00
dd3c0ed4f3 Version bump -> 1.0.1 2021-06-15 21:57:48 +02:00
f2c4dd7a26 CONCPP-79, CONCPP-80 and CONCPP-81
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
2021-04-26 12:17:08 +02:00
0d6f9e21af Added aliad for useCompression option - CLIENT_COMPRESS
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.
2021-04-25 22:54:17 +02:00
bac84b14be C/C has been updated to v3.1.12
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"
2021-03-12 15:52:39 +01:00
ddb3eeaa7c Added cmake option WITH_MSI for skipping of msi package generation
The default value is ON
Travis on Windows config amendments. Error on Windows is now disallowed
2021-03-02 17:14:36 +01:00
029bd01df6 Removed direct openssl dependency
Updated dll's copyright year.
Small example program change.
Modified connectionmetadata::getColumnPrivileges test
2021-02-12 18:36:32 +01:00
6003e95b73 CONCPP-68 Added check for GCC version and cmake error if it's <4.9 2021-02-11 14:22:17 +01:00
7983bc2d34 CONCPP-67 Fix of tarball directory structure
Added project, to ensure that example application can be built with
tarball headers and binaries
2021-02-10 21:50:23 +01:00
ffb3ba5776 CONCPP-59,60 Windows package issues, Exception crash fix, and more
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.
2021-02-04 14:15:58 +01:00
43d72ad28b CONCPP-57,CONCPP-55 Making client side prepared statement a default(instead of ssps)
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
2021-01-19 17:40:49 +01:00
d6e84b938f Version bump -> 1.0.0
Updated README, fixed the table in README.md
2020-12-04 16:08:54 +01:00
fff542dde4 CONCPP-52,53,54 executeBatch() would execute only last query
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
2020-11-24 23:13:22 +01:00
91cd28aecf CONCPP-30 Connector/C++ binary tarball for RHEL has duplicate libraries
libmariadb updated to v3.1.11
Version bump->0.9.4
2020-11-06 00:21:56 +01:00
1a20fbe03f cmake change to make packages names in line with other connectors 2020-08-11 15:51:36 +02:00
9a8daef07e CONCPP-29 Introducing DriverManager class with getConnection only
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
2020-08-11 14:17:28 +02:00
c33fe179cb CONCPP-25 The fix and the testcase
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.
2020-07-23 12:54:34 +02:00
1c9861ed93 CONCPP-23 CONCPP-22 CONCPP-12
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.
2020-07-20 11:58:23 +02:00
eb681b4ff4 Updated requred cmake version to 3.1
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).
2020-06-16 16:51:01 +02:00
fd48849f27 CONCPP-11 binary tarballs were "tarbombing" users
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.
2020-06-08 14:39:58 +02:00
21f0458590 Version bump -> 0.9.3, C/C submodule -> v3.1.8 2020-05-14 12:47:58 +02:00
690e253004 Changes to the tarball package layout
Changed includes directory and Connector/C no goes to the same dir as
C/C++
Turned off one test - needs fix.
2020-05-11 13:54:48 +02:00
5559d0c34e CONCPP-9 Driver links against C/C only dynamically on !Windows
I.e. on platforms others than Windows. make install will install
libmariadb libary as well.
2020-05-11 01:42:54 +02:00
c8ec1a0a7a CONCPP-8 Introduced set/getUInt methods. Version bumped to 0.9.2
Also added stubs for setClientOption(throwing SQLFeatureNotImplementedException)
Added to ctest another testsuite(which is actually failing)
2020-05-04 14:39:48 +02:00
ce18509577 Initial travis config. Enabling running tests with ctest
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
2020-03-29 23:15:16 +02:00
c097fac1a5 CONCPP-5 Build on Windows
Added C to LANGUAGES. Added CMAKE_BINARY_DIR to includes paths.
2020-03-23 13:47:18 +01:00
67f146ee6e Includes added to MSI
New banner product upgrade code and banner for msi.
Some amendments to tests build
2020-03-19 00:15:43 +01:00
5b8a128ca2 Version bump -> 0.9.1. Driver is a singleton now
And that is how it is supposed to be.
BUILD.md with instructions
README gets some basic use instructions.
2020-03-18 14:20:09 +01:00
3d4a0059af First public commit 2020-03-17 15:05:27 +02:00