Commit Graph

14 Commits

Author SHA1 Message Date
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
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
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
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
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
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
02a4ff2488 [misc] test addition
* test against latest 10.6 build
* add SkySQL HA
* update to maxscale 2.5.3
2021-01-19 23:54:09 +01:00
c03f6aa5e5 Build fix
Lately to fix one test build with certain VS version, not portable
change has been made, that broke build on other platforms.

Fix of couple of tests for older server versions.
2020-12-04 16:09:08 +01:00
32afc2799a Fix of one testcase in 'statement' that fails with some VS versions
Build fails.
2020-11-25 00:33:25 +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
1ce04edb44 CONCPP-45 Various issues with CallableStatement
Also fixed many things in multiple resultsets processing. Fixed many
tests(previously skipped), and workarounded CONC-504
2020-10-05 22:59:39 +02:00
d911eafb2c Fixed few tests that depend on features not supported in older servers 2020-09-25 23:14:50 +02:00
94abce1a8b CONCPP-15 Fixed memory leaks in testcases 2020-07-26 23:22:06 +02:00
3d4a0059af First public commit 2020-03-17 15:05:27 +02:00