Matej Kenda
8a4a2955d5
Use nullptr in C++ code (solves #4348 ) ( #5043 )
...
* chore(CppParser): 0, NULL --> nullptr
* chore(Crypto): 0, NULL --> nullptr
* chore(DNSSD): 0, NULL --> nullptr
* chore(Encodings): 0, NULL --> nullptr
* chore(CppUnit): Correct indentation.
* chore(Foundation): 0, NULL --> nullptr
* chore(CMake): Always warn about wrong nullptr usage when compiling with GCC or CLang
* chore(Net): 0, NULL --> nullptr
* chore(Foundation): 0, NULL --> nullptr
* chore(Data): 0, NULL --> nullptr
* chore(macOS): 0, NULL --> nullptr
* chore(XML): 0, NULL --> nullptr
* chore(Zip): 0, NULL --> nullptr
* chore(Util): 0, NULL --> nullptr
* chore(Net/NetSSL): 0, NULL --> nullptr
* chore(Bonjour): 0, NULL --> nullptr
* chore(MongoDB, Redis): 0, NULL --> nullptr
* chore(Poco): 0, NULL --> nullptr
* chore(Win32): 0, NULL --> nullptr
* chore(CMake): Only warn about nullptr when verbose warnings are enabled.
* Potential fix for code scanning alert no. 1634: Guarded Free
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* chore(Net): Fix warning reported by gitlab.
* chore(gitlab CI): attempt to clean to gain disk space on the runner.
* chore(gitlab CI): Run build with --parallel 4, correct docker cleanup.
---------
Co-authored-by: Aleksandar Fabijanic <aleks-f@users.noreply.github.com >
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-10-30 15:20:53 +01:00
Aleksandar Fabijanic
36c808230c
fix(ODBC): Poco:Data::ODBC - MSSQL (n)varchar(max) length issue #4324 ( #4738 )
...
* fix(ODBC): Poco:Data::ODBC - MSSQL (n)varchar(max) length issue #4324
* chore(ODBC): remove unused vars; fix SQL Server SDK include path #4324
* fix(ODBC): trim UTF16 string #4324
* chore(ODBC): add compile time big string diagnostics #4324
* chore(ODBC): add SQLServer big string vector test case #4324
* fix(ODBC): detect SQLServer header #4324
* chore: add listing msodbdcsql18 folder #4324
* ci: change odbc drivers installation order #4324
* chore(CMake): Add option ENABLE_DATA_SQL_SERVER_BIG_STRINGS, auto-detection of msodbcsql.h on Linux and macOS
* fix(ODBC): detect backend at runtime for string size; add Session::dbmsName() #4324
* fix(ODBC): wrong char to string conversion #4324
---------
Co-authored-by: cunj123 <n.belusic@pta.hr >
Co-authored-by: Matej Kenda <matejken@gmail.com >
2024-10-19 21:43:00 +02:00
Aleksandar Fabijanic
86084cb7b2
feat(Data::AbstractSessionImpl): add autoCommit property and tests #4261 ( #4262 )
...
* fix(Data::AbstracSessionImpl): protect autocommit feature handlers #4261
* chore(CI): re-enable mysql
* MySQL SessionImpl: make sure autocommit mode is on when session is openend or reset.
* PostgreSQL SessionImpl: reuse autocommit flag of AbstractSessionImpl.
* Github workflow: re-activated linux-gcc-make-postgres
* Fixed indentation in ci.yml
* Fix for DataTest SQLExecutor: use connector
* Data::Session: when parser is not used and autocommit mode is off, assume any SQL statement begins a transaction.
* PostgreSQL: don't use SQL parser (it currently cannot handle placeholders).
* PostgreSQL: added test sessionTransactionNoAutoCommit
* PostgreSQL test suite: removed reference to generic SQLExecutor
* PostgreSQL: fixes for sessionTransactionNoAutoCommit.
* MySQL: added test sessionPoolAndUnicode (from #2801 )
* Fixed #define in sql-parser
* Data generic testsuite: support numbered placeholders
* PostgreSQL test suite: added missing include directory to Makefile.
* Attempt to fix PostgreSQL Makefiles
* PostgreSQL testsuite: added include path to Makefile
* PostgreSQL testsuite: added PocoDataTest library to Makefile
* DataTest SQLExecutor::formatSQL: don't use string_view
* PostgreSQL test suite: delegated most tests to Poco::Data::Test
* Makefile: added dependencies on Data-Tests
* Weaken assumptions about async in generic transaction tests
* Makefile: added dependency for Prometheus samples
* Fix deadlock in DataTest SQLExecutor
* PostgreSQL tests SQLExecutor: cleanup
* feat(Data::AbstractSessionImpl): add autoCommit property and tests #4261
* Brought MySQL backend in line with _autoCommit flag of AbstractSessionImpl.
---------
Co-authored-by: Friedrich Wilckens <frwilckens@gmail.com >
Co-authored-by: Friedrich Wilckens <friedrich.wilckens@ingramcontent.com >
2023-12-22 09:27:34 +01:00
Hernan Martinez
4051f85139
Use tx_isolation when connected to MariaDB regardless of version ( #3622 )
...
* Use `tx_isolation` when connected to MariaDB regardless of version
* Rename variable
* Handle MariaDB server info in the middle of the string
2022-05-31 08:46:49 -05:00
Hernan Martinez
0081bde084
Use transaction_isolation in MySQL 8+ ( #3490 )
...
* Use transaction_isolation in MySQL 8+
* Trim buffer before comparison
2022-05-26 09:36:45 -05:00
Günter Obiltschnig
506049e360
add fail-readonly connection string parameter
2020-02-08 15:41:43 +01:00
Günter Obiltschnig
496360bab7
make session reset optional and disable by default
2020-02-07 15:16:20 +01:00
Günter Obiltschnig
43b79ffdbe
added Poco::Data::Session::isGood()
2020-01-13 20:13:27 +01:00
Günter Obiltschnig
c04a1f28d9
add support for MySQL 8
2020-01-13 10:31:25 +01:00
Vojtěch Erben
8f2fef23e4
Rename methods
...
resetConnection() -> reset()
2018-11-20 10:09:40 +01:00
Vojtěch Erben
6e6ad28a1f
Reset connection when a session is returned to the SessionPool
2018-11-14 15:50:17 +01:00
Günter Obiltschnig
9f53d07d4c
fixed GH #2538 : Poco::Data::Session::connector() returns empty string for MySQL session.
2018-11-11 20:50:15 +01:00
Alex Fabijanic
fa042447a4
regenerate mysql vs projects
2018-05-07 15:22:12 +00:00
Günter Obiltschnig
04e7e04d4d
Remove \$Id`$ headers
2017-09-09 11:14:06 +02:00
Guenter Obiltschnig
6548da5678
fixed docs
2017-02-18 14:03:55 +01:00
Guenter Obiltschnig
9a81312bcf
fix for #1187 : don't set timeout to zero
2016-03-10 21:29:11 +01:00
Roger Meier
b0581433a7
LICENSE: add info about SPDX-License-Identifier usage and use it
...
fix: remove executable flag and change back to 100644 (was 100755)
Signed-off-by: Roger Meier <r.meier@siemens.com >
2014-05-14 08:38:09 +02:00
Roger Meier
628a06f718
LICENSE: add info about SPDX-License-Identifier usage and use it
...
Signed-off-by: Roger Meier <roger@bufferoverflow.ch >
2014-05-04 21:02:42 +02:00
Yuan Pengfei
1324366974
Add MySQL charset configuration support
2013-07-25 08:19:52 +08:00
Aleksandar Fabijanic
b95ec4fe53
MySQL fixes/additions/improvements
...
- fixed GH #187 : MySQL: allow access to the underlying connection handle
- added GH #186 : MySQL: support for MYSQL_SECURE_AUTH
- fixed GH #174 : MySQL: 4GB allocated when reading any largetext or
largeblob field
2013-06-09 12:33:57 -05:00
aleks-f
2a81e59e8c
MySQL DateTime support, samples Linux compile
2012-12-14 19:48:10 -06:00
Aleksandar Fabijanic
248d52164d
#310 Connect to MySQL db without specifying database name.
2012-09-23 20:52:02 +00:00
Aleksandar Fabijanic
32c5b6b998
ODBC fixes and tests (Oracle, SQL Server, MySQL on Windows)
...
MySQL back-end compile fixes on Windows
Nullable/NullType
2012-09-17 00:18:13 +00:00
Aleksandar Fabijanic
5a639074d9
change EOL to 'native'
2012-04-29 18:52:25 +00:00
Aleksandar Fabijanic
d75e68c027
new trunk (base for 1.5)
...
windows build only
2012-04-23 01:14:34 +00:00
Aleksandar Fabijanic
f9b60296f7
removing old trunk files
2012-04-23 00:43:14 +00:00
Aleksandar Fabijanic
b0bbfb5554
changed set|getTimeout() => set|getLoginTimeout()
...
added set|getConnectionTimeout()
2009-02-28 01:52:41 +00:00
Aleksandar Fabijanic
68a79674c1
SF [2643953] Improve Data::Session connection
2009-02-27 03:14:53 +00:00
Aleksandar Fabijanic
142c248754
use std::size_t in Data interfaces (may break some code on 64-bit platforms)
2009-02-16 03:34:35 +00:00
Aleksandar Fabijanic
d11f007d23
[SF 2580108] Improve transaction handling
2009-02-08 23:14:54 +00:00
Aleksandar Fabijanic
b38f5ce99c
[SF 2505290] DB connection as URI (MySQL not tested!)
2009-01-13 19:51:48 +00:00
Aleksandar Fabijanic
aaddff0f41
MySQL:
...
Solaris compilation fixes
VS90 project file
Makefile
few tidy-up code fixes
2008-09-22 13:32:12 +00:00
Sergey Kholodilov
33efbefa71
=MySQL connector
2008-06-25 10:42:16 +00:00