Commit Graph

114 Commits

Author SHA1 Message Date
18b2d22c51 CONCPP-110 Fixed, that could confuse the compiler.
Contains also libmariadb submodule update to the latest release and some
tests improvements/fixes.
2022-11-16 15:37:46 +01:00
49009c091b bump the VERSION 2022-10-11 08:33:03 -04:00
c343af0559 CONCPP-106 Correction for the main fix
In case of CSPS, connector prepared for the bulk query all changed to
lower case. Besides being wrong in general, that could cause errors on
platforms, where names are case sensitive.
Also made few methods(including batch execution methods) to unlock the
mutex in case of error, because some routines processing error also try
to acquire the lock, and it is not re-entrant.
1.0.2
2022-09-28 18:35:28 +02:00
d19b6611fa Adding ability to set tests verbosity using env variable
Made teavis tests verbose. Made some tests timeout longer
2022-09-26 14:32:15 +02:00
96efd9e142 CONCPP-106 Enabling use of bulk statement execution with the testcase
The feature is enabled with useBulkStmts boolean options, that is off by
default. Works only with MariaDB servers >= 10.2.7. It won't be used
with streaming parameters.
2022-09-26 00:40:15 +02:00
b9e3f99cc9 [misc] adding batch benchmark with client rewrite 2022-09-20 18:08:05 +02:00
9980141463 [misc] adding batch benchmark 2022-09-20 17:48:06 +02:00
b311cbec93 CONCPP-107 Preventing possibility to set fetch size !=0
1.0 version does not support this feature
2022-09-20 14:39:04 +02:00
a09b02c166 [misc] benchmark implementation 2022-09-01 18:24:48 +02:00
97ee32effb C/C updated to the v3.3.2
Plus small test change along the way
2022-08-19 17:28:45 +02:00
ff0f77cd8a CONCPP-105 crash when attempting connections from multiple threads
The RowProtocal class used reference to static object, that caused race
condition in concurrent environment.
Also, small addition to packaging on macos.
2022-07-26 14:54:24 +02:00
1092a2a13d [misc] permitting travis mysql test to fail 2022-07-20 11:13:29 +02:00
4f4609add7 [misc] travis test adding suite
mysql test improvement
2022-07-19 15:03:07 +02: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
e2e03dadfd CONCPP-99 rewriteBatchedStatements option support
For insert queries, rewrites batch of staments to execute in a single
executeQuery. e.g.
insert into ab (i) values (?) with first batch values = 1, second = 2
will be rewritten as insert into ab (i) values (1), (2)
If query cannot be rewriten in "multi-values", rewrite will use
multi-queries, i.e.
insert into ab (i) values (1);insert into ab (i) values (2)
Using this option causes the useServerPrepStmts option to be set to false
2022-07-17 19:14:52 +02:00
368906f52d Travis corrections - fixing skysql and windows
Moved skysql and maxscale out of allowed failures section.
2022-07-08 14:24:25 +02:00
0fcefdc4c6 Initial commit for pkg(productbuild) pacakging on MacOS 2022-07-06 19:19:27 +02:00
bf5069abfb Move in Travis tests to use of connector test machine 2022-07-04 11:28:12 +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
ed44e401b0 Fixed the teststcase in databasemetadata for 10.8
It's about descending part of an index.
Moved 10.8 out of allowed failures section on Travis

Fixed getServerVersion in the test framework to work correctly with
minor versions >9(and affected testcases)
2022-05-23 23:22:40 +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
aec36978c3 CONCPP-96 The fix and testcase
The fix sets precision 30 for conversion of the double number to its
string representation, requeired for "client side" statement preparing(server
side wasn't affected by the bug). 30 is taked because it's max number of
decimals for decimal column type. This can cause "overflow" errors if
setDouble is used to populate shorter varchar or other types. SOme older
test have been amended to deal with that.
Testframework was fixed to be more informative about where the error
occured(often it printed line where the exception was caught, and for
some tests that is not very helpful.
Fixed couple of compilation warnings.
2022-05-04 19:28:48 +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
5271a721a3 Oops, changed whitespace 2021-08-28 16:31:25 +02:00
ed2a7d72cf Fix improper string + int concatenation
When using the `+` operator on a string literal (which is natively a `char*`) and an integer, you are actually adding to the pointer value rather than concatenating to the string. Instead, by first explicitly constructing an `std::string` from the string literal, and second using `std::to_string` on the integer, the string will be properly concatenated.
2021-08-28 16:31:25 +02:00
ad52bb72db bump the VERSION 2021-06-17 10:37:41 -04:00
dd3c0ed4f3 Version bump -> 1.0.1 1.0.1 2021-06-15 21:57:48 +02:00
9c2b491a3e Updated C/C to v3.1.13 2021-06-15 19:08:08 +02:00
fd0426d3fb CONCPP-84 Added option credentialType with alias defaultAuth
for MYSQL_DEFAULT_AUTH functionality in C/C
2021-06-15 11:57:46 +02:00
3e22acde01 Small addition to CONCPP-78 - added aliases for useCharacterEncoding
These are OPT_SET_CHARSET_NAME and useCharset
2021-06-15 00:48:27 +02:00
9d75a113b7 CONCPP-69 Moved callable parameter metadata to use I_S instead of proc 2021-06-14 14:52:53 +02:00
f2df1062c2 CONCPP-78 Introduced useCharacterEncoding connection option
Users can use it to set charset used in the conection.

Temporarily made tests against built 10.6 allowed to fail(before that
fixed for travis)
2021-06-14 11:08:33 +02:00
ed2632f03e Tentative fix for the issue.
There is no ticket yet, but bound to use of binaries built with
differnet VS version.
2021-05-05 23:39:23 +02:00
8c39b2431b CONCPP-81 Missing part for includes installation 2021-04-26 22:09:26 +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
474973768e Fixed tests for run in Travis against SkySQL
Added useCompression to the README
Removed one obsolete cmake option from travis build script
2021-04-16 18:36:35 +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"
1.0.0
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
c06be0a1c9 CONCPP-71 SQLString destructor should not be virtual
Also internally used class Value is changed to use SQLString, instead of
(smart) pointer to it. Added missing SQLString object creation/destruction in
that class.
Checking in appveyor initial configuration.
Added windows test (try) to travis config.
2021-02-26 16:58:15 +01:00
be22353bc2 CONCPP-70 statement::addBatch test sporadically failed
The reason was, that filling of vector with executeBatch results was
done using undefined behavior - it was done using [] operator member
access for not existing members. The values were inserted correctly, but
the size of vector happened to not always be reported correctly.
Added similar test to preparedstatement.
Made clearBatch not to reset current set of parameters - that looks
like to be that jdbc specs expect.
Fixed other such cases of wrong vector use.
Made some to/from text conversion to use C locale.
2021-02-19 10:45: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
68ee879c70 Updated README files 2021-02-08 12:11:51 +01:00
dbc0eb0106 Fix of tarball generation. cpack was referencing wrong header filenames
after they have been recently renamed
2021-02-08 11:47:59 +01:00
983e4a84af CONCPP-65 Fix of various possible memorey leaks and other errors 2021-02-08 11:12:24 +01:00
cb827c8653 CONCPP-64 The fix of the reconnect method
Statements created on connection before reconnect stay unusable(in case
connection were lost). New objects have to be created
2021-02-08 02:32:23 +01:00
96e5040dd3 CONCPP-63 Fix of possible memory leak with exceptions
The problem was, that if the created exception was a subclass as SQLException, it(or it's
copy) would eventually be destructed as SQLException. Thus, everything
but SQLException would leak. That happened, because as a quick solution
at the time, they all were thrown as SQLException. Caught as
SQLException&(they could not be caught as an exception of its own
class), they would be destructed as SQLException.

As the solution, exception are thrown at the moment of creation, if
possible. Otherwise connector operates spesially created
class(MariaDBExceptionThrower), that
can throw exception of the correct type
2021-02-08 00:56:21 +01:00
623eefe3f2 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.
2021-02-05 14:51:50 +01:00