Commit Graph

17 Commits

Author SHA1 Message Date
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
Friedrich Wilckens
8740816c78 PostgreSQL SessionHandle: const fixes. 2023-11-03 19:48:52 -07:00
omerbrandis
3793c0a515
added new memeber SqlState to PostgreSQLException and made use of it. (#4099)
* added new memeber SqlState to PostgreSQLException and made use of it in StatementExecutor

* Added test case testSqlState

* fixed nameing convention errors. fixed bug in PostgreSQLException::PostgreSQLException regarding null termination of _sqlState data member
2023-10-20 17:44:04 +02:00
Aleksandar Fabijanic
5e1904b5f8 fix: Sync 1.11.-1.12-devel(1.13) #4187 2023-10-16 00:16:06 +02:00
Günter Obiltschnig
562b3b90c0 merge pg binary extraction support 2022-05-17 07:33:50 +02:00
Günter Obiltschnig
ca3d168153 improve BLOB handling, clean-up code 2021-06-25 09:22:58 +02:00
Günter Obiltschnig
7569ccf82b #3318: Data: Support Poco::UUID for data binding 2021-06-19 08:40:49 +02:00
Günter Obiltschnig
4615774f57 #3099: Fixed Postgres extraction into Dynamic::Var 2021-06-15 07:07:09 +02:00
Günter Obiltschnig
14e58b7fea code cleanup 2020-01-25 20:43:13 +01:00
Alex Fabijanic
854bf4d79f few PostgreSQL fixes 2020-01-17 10:59:02 +01:00
Günter Obiltschnig
b55db12286 cleanup 2020-01-10 12:30:06 +01:00
Günter Obiltschnig
aa46e9b6e4 fixed type overloads 2020-01-09 18:02:29 +01:00
Vojtěch Erben
8d4dee26ea Fixed PostgreSQL SessionImpl, use mysql_reset_connection() if it is
available

Use mysql_reset_connection() only if MySQL version is >= 5.7 or MariaDB
version is >= 3.0.0 otherwise fall back to myslq_refresh()
2018-11-21 10:14:07 +01:00
Francis ANDRE
3b3d2652fc Remove POCO_LIB_SUFFIX since PostgreSQL does not provide a debug libpq
library
2018-05-07 20:32:32 +02:00
Francis ANDRE
a5951c7795 Add POCO_LIB_SUFFIX to the #pragma link library name 2018-05-07 20:29:41 +02:00
Francis ANDRE
33dcd181e6 Rename PocoSQLPostgreSQL to PocoDataPostgreSQL 2018-05-07 19:05:51 +02:00
Alex Fabijanic
f75bc3e00d add postgresql 2018-05-07 15:28:38 +00:00