232 Commits

Author SHA1 Message Date
0490ed352a [TODO-5373] add github action CI
(cherry picked from commit 0c0fd886e9)
2025-06-24 16:53:06 +02:00
cb02a3a139 bump the VERSION 2025-03-14 10:44:36 -04:00
a3ebeed2ec Merge branch 'master' into develop 1.1.6 2025-03-07 03:58:42 +01:00
a36ff95ac6 ODBC-141 Certificate validation is now explicitly turned off
If not selected otherwise.
The connection option `trustServerCertificate` responsible for that is
now properly documented in the README(.md) It is true by default that
means that certificate is not verified. If not set to false it now
causes also that certificate verification is explictitly turned off.
That enables connector to work without problem with C/C 3.4
1.0.5
2025-02-27 17:41:32 +01:00
adb14cdfc1 Fix of the testcase in connection.cpp for MySQL 2025-02-27 17:17:57 +01:00
68f185b41d Merge branch 'master'(1.0) into develop(1.1)
Also, contains additional chages resquired for CONCPP-138 for the case
of the resultset streamin(that 1.0 does not have). We don't cache all
binary results in such case and check if statement/connection is not
closed to avoid the crash. i.e. in case of streaming closing of
connction transitively closes resultset.
2025-02-24 13:38:16 +01:00
9bb717ca28 CONCPP-137 Inconsistent type names returned by getColumnTypeName
from ResultSetMetaData. Some of them have prefix "Types::", some not.
They all should not have.

Fix of error in the previous commit in the RowProtocol.cpp
2025-02-24 11:41:46 +01:00
49a13a1b8d CONCPP-138 Application could crash if rs used after connection closed
That could happen only with binary results, i.e. with results of
PreparedStatement if useServerPrepStmts option set.

Also the commit contain some performance improvements. In particular for
converting string values to double.
2025-02-24 01:29:10 +01:00
1365645497 CONCPP-140 Marked reset and reconnect Connection methods deprecated 2025-02-24 01:22:08 +01:00
b54bb1e7e7 Fix forr erroneous commit I did before merge.
Just not to re-merge
2025-02-17 14:10:19 +01:00
a44d1c1b11 Merge branch 'master'(1.0) into develop(1.1) 2025-02-17 13:57:28 +01:00
5b53426693 Just to save small local changes 2025-02-17 13:04:49 +01:00
e25877bba3 Updated C/C to v.3.3.14
Corrected test for caching_sha1_pwd as we doing things defferently, than
mysql.
2025-02-17 12:54:07 +01:00
7471580570 Extended a bit the test Bytes array parameter from previous commit
to demonstatrate and check its work, and a bit of sql::bytes

Corrected vendor name in cpack configuration.
2025-02-17 01:06:56 +01:00
ae20e01ee0 ByteArrayParameter: all bytes.length to size() and add test 2025-02-04 10:20:37 +01:00
1746a34afd Fix ByteArrayParameter::writeTo(SQLString& str) for negative sql::bytes::length
sql::bytes::length may be negative. That ByteArrayParameter::writeTo(SQLString& str) static_cast it directly to size_t causes unexpected result in this case.
2025-02-04 10:20:37 +01:00
db23132038 Remove a #endif of unknown significance
A #endif appears at an ill-formed location. Delete.
2025-01-30 14:53:52 +01:00
72724ffa1d Include <cstdint> in CArray.hpp
This fixes compilation errors on systems, where the standard library doesn't happen to include sized integer definitions in one of the already included headers
2025-01-21 16:47:35 +01:00
27286a5d96 Some improvement of basic query coming thru
Elimenated unnecessary query string copying and parameters vector
creation.
2024-12-13 17:18:08 +01:00
5b6b96312c Some performance improvement
- of string to integer conversion
- in client side query prepare some better memory reservation and use of
  std::string instead of SQLString internally.
2024-12-11 00:31:09 +01:00
3a6e29a6db Changes in tests for MySQL 2024-11-30 21:45:22 +01:00
d2dc327ee5 CONCPP-136 Adding Statement batch, fixing issue in previous commit
Statement::addBatch was omitted in previous commit. Here it is optimized
as well(in similar way).
Previous commit did not restore the autocommit in the stored server
status, so next query could thing it still off.

Fixed testcases for maxscale and fixing testing with mysql servers.
2024-11-18 12:13:02 +01:00
b35eac8417 Changes in testcases for the changed batch method default 2024-11-12 17:35:08 +01:00
1162349e9e CONCPP-136 Changing defaults for 1.1 - useBulkStmts is now on by default
Given that parformance with defaults was so bad I think it's safe to
change. As a matter of fact it's been meant to be default as this is
best and fastest method and it's a unique MariaDB feature.
2024-11-10 21:43:16 +01:00
556bb4d2a7 Merge branch 'master'(1.0) into develop(1.1) 2024-11-10 21:16:44 +01:00
f12d3fbb4c Minor changes - mostly typos, formnat, spelling 2024-11-10 19:01:51 +01:00
55d4e48372 CONCPP-136 bad batch execution performance with default settings
Changed default execution method to turn autocommit off for the time of
execution if it was on. Committing after the end of the batch if
autommit was on.
2024-11-10 18:15:49 +01:00
da8799b1c4 Replace usage of sprintf with snprintf
Co-authored-by: JOAQUIN BEJAR <jb@taunais.com>
2024-11-04 10:48:29 +01:00
73e6afbc0c Copied travis.yml from 1.1
Fixed warning in LoggerFactory
2024-11-04 10:33:09 +01:00
2c636f4be0 CONCPP-134: Remove use of volatile in ServerPrepareResult::shareCounter and others 2024-11-03 19:01:44 +01:00
366414f29b bump the VERSION 2024-10-21 15:08:11 -04:00
62797c36c5 [misc] update test suite 2024-10-20 13:30:55 +02:00
9ae1efaac5 CONCPP=133 Backported missing stuff from 1.1 to make it fully functional 1.0.4 2024-10-05 12:15:28 +02:00
db9241c72f Fix typos in some CMake option documentation strings 2024-09-10 12:16:26 +02:00
f6afbf3581 bump the VERSION 2024-08-27 11:40:08 -04:00
725d4f542b CONCPP-133 Merge branch 'master' into develop and the fix completion
Also, I guess the potential bug has been fixed in case of next RS has
less fields than previous. Vector with metadata was keeping the previous
number of elements and looks like that could cause some strange things.
1.1.5
2024-08-27 00:28:54 +02:00
c953dd3858 Some small changes not to be lost 2024-08-26 10:42:44 +02:00
7080eedd79 CONCPP-133 Partial fix(or rather part of fix) for merge into 1.1 mainly 2024-08-26 02:13:53 +02:00
7aaf7aeff3 CONCPP-132 getMoreResults can read result belonging to the other stmt
The fix and the testcase
2024-08-19 12:51:30 +02:00
0d6790d011 bump the VERSION 2024-06-07 09:42:43 -04:00
23367767e1 Fix of static lib test build
There are issues with pthread linking on some platforms.

Removed obsolete VS versions from appveyor config
Updated travis config
1.1.4
2024-06-02 23:03:12 +02:00
013ad2b10c CONCPP-129 Property value initialized with NULL was treated as true
Connection properties is map of SQLStrings. If boolean property was initialized
with false, that would treated by compliler as nullptr, and string
initialized with nullptr is empty string, and empty string is treated
for boolean property as true. Which is obviously confusing.

The fix introduces 3rd state for the SQLString - NULL, and makes such
string as a value option to be treated as false. The NULL string will
still have empty string value in different string operations, though.
Setting or changing its value removes the nulliness.
This "Nulliness" is still intended for the driver's internal use mainly,
and designed not to change anything for applications. Comparison of such
object with nullptr returns true, though.
2024-05-27 13:58:00 +02:00
b38a55dc44 C/C has been updated to the v3.3.10 2024-05-15 15:04:42 +02:00
d59034c558 Update mariadb_conncpp.xml.in
fix windows installer missing include header files
2024-04-21 16:26:38 +02:00
1265d1dbb5 bump the VERSION 2024-02-21 12:31:17 -05:00
80882200ce Quality has been change from rc to ga
As it has to be ga release
1.1.3
2024-02-13 18:35:02 +01:00
485710e085 Moved C/C to v.3.3.9 2024-02-11 18:59:05 +01:00
98c8427c86 CONCPP-123 Some changes and some documentation in the README(.md)
Setting logname will automatically set logging level to 1(error), if
it's not set and is 0.
3rd choice for default log location on Windows is current dir instead of
c: - opening file in c: root could be a problem for an application. Even
though I don't think 3rd choice will actually ever taken.
Changed unnecessary passing of shared_ptr to the function in one place
along the way.
2024-02-11 16:53:59 +01:00
628cef519d Fix of the issue found with ASAN
After deque::pop_front, reference returned by front is invalidated

Plus hopefully final fix of the pool2 test
2024-02-11 02:32:57 +01:00
90678443a6 CONCPP-123 Adding logging functionality
Connection option "log" can be used to set the logging level and turning
logging on - any value > 0 will turn it on.
"logname" can be used for setting log filename. Default name is
mariadbccpp.log, and it's written to TEMP or USERPROFILE or c: on
Windows, or HOME or /tmp on other systems.
Levels from 1 to 5 are: error, warning, info, debug, trace

Also contains correction of thests in pool2 and small correction of the
pool itself - number of pending requests were not decremented.
2024-02-09 12:51:06 +01:00