Commit Graph

622 Commits

Author SHA1 Message Date
Francis ANDRE
4cee0f1b5e Fix defines for non-Windows platforms 2018-09-25 14:02:18 +02:00
Francis ANDRE
9a140fdae2 Fix Clang linker lib 2018-09-25 09:42:55 +02:00
Francis ANDRE
13e7fe1aae Add -lodbc for OSX/Linux 2018-09-24 21:46:23 +02:00
Francis ANDRE
1935abf81a Reformat 2018-09-24 21:31:55 +02:00
Günter Obiltschnig
c8af3f1c92 fixed unused warnings 2018-08-31 10:16:37 +02:00
Aleksandar Fabijanic
9d0a1d1a7a
typo fix 2018-06-27 18:00:10 -05:00
Francis ANDRE
5dbb9cc3de Regenerating VisualStudio projects 2018-06-20 09:47:40 +02:00
Francis ANDRE
b7330492e5 Add <TargetMachine>MachineX64</TargetMachine> on <Lib> element 2018-06-15 14:28:43 +02:00
Francis ANDRE
d603a15b8d Removing WinTestRunner 2018-06-10 20:42:54 +02:00
Francis ANDRE
19eecbaafb Remove WinTestRunner 2018-06-10 19:46:19 +02:00
Joerg-Christian Boehme
612f092235 Cleanup cmake build system to use transitive dependency management from cmake (#2321)
* Some cleanup in the root CMakeLists.txt

* Cleanup cmake targets

* Add find openssl modul for older cmake version

* Set proper scope

* Change crypto default to off

* Fix openssl default to on

* Remove global setting of C99 standard

* Set from C11 to C99

* Fix for NetSSL win build

* Set C99 compile features

* Fix Windows build

* Fix windows build

* Cleanup poco unbundle definition

* Fix PDF build

* Remove unused set affinity

* Add _CRT_SECURE_NO_WARNINGS as target compile definitions

* Add _AFXDLL as target compile definitions

* Remove commented out line

* Refactor add_definitions to target_compile_definitons in Util

* Refactor add_definitions to target_compile_definitons in XML

* Remove THREADSAFE in data sql cmake build

* Refactor add_definitions to target_compile_definition in cmake mysql

* Refactor add_definitions to target_compile_definition in cmake odbc

* Refactor add_definitions to target_compile_definition in cmake sqlite

* Refactor add_definitions to target_compile_definitions in platform specific cmake

* Add _DEBUG as compile definition

* Add build dependencies between Foundation-testrunner and TestApp, TestLibrary in cmake build

* Use cmake property to build shared libs

* Cleanup POCO_NO_AUTOMATIC_LIBS. Set only for Windows in cmake build system

* cleanup LIB_MODE_DEFINITIONS in cmake buld system

* Add POCO_STATIC for CppUnit

* Cleanup target link libraries and add option dependencies.

* Add dependencies management in cmake

* Update cmake documentation

* Squashed commit of the following:

commit 38c233f93fc8e9ad6e24d686c905eb18c86e19a7

    Fix "invalid new-expression of abstract class type ApacheServerRequest" (#2231)

    - abstract method "bool secure() const" defined in HTTPServerRequest was implemented in ApacheServerRequest, one of its derived classes
     - a ap_log_error had one of its parameters changed for fixing a warning "passing NULL to non-pointer argument"
     - minor indentation problems corrected

commit 4cbdfbe828943871618172f9e042176f115d61d8

    Fix build dependencies

* Improve database cmake build dependencies

* Update doc

* Update doc

* Update cmake build commands

* Set public on target link libraries in cmake build system

* Fix PostgreSQL build

* Fix PostgreSQL build in cmake

* Fix PostgreSQL from SQL to Data

* Squashed commit of the following:

commit 1ba7d5dcbfb8d07860dd4efda33b31bedf6184c4

    Add missing cmake file

* Set path to PostgresSQL in AppVoyer

* Try to fix AppVeyor build

* show dir in appvoyer

* Disable PostgreSQL build on Appvoyer

* Refactor add_definitions to target_compile_definitions
2018-06-03 11:17:50 -05:00
Francis ANDRE
4c22b871ae Use CppUnit as a Poco module: regenerate all VS projects 2018-05-28 23:29:12 +02:00
Francis ANDRE
db5d570f33 Add Poco as prefix of CppUnit import libs 2018-05-28 19:58:05 +02:00
Francis ANDRE
be79688077 Use PocoCppUnit instead of CppUnit 2018-05-25 14:05:00 +02:00
zosrothko
36fbbb7a6d Update for Data/PostgreSQL 2018-05-12 14:55:01 +02:00
zosrothko
e9db9bddb1 Build Data/PostgreSQL 2018-05-12 14:19:39 +02:00
Francis ANDRE
ea2de435ea Restore reference to postgres predefined lib 2018-05-12 12:25:35 +02:00
zosrothko
6ba292a567 Update gradle 2018-05-11 17:03:06 +02:00
Francis ANDRE
bbddf9744c Update Gradle 2018-05-07 21:09:22 +02: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
dc021ae25c Postgres Linux and cmake build 2018-05-07 11:50:39 -05:00
Alex Fabijanic
f6ddfe1d02 fix typeinfo compile error 2018-05-07 11:03:09 -05:00
Alex Fabijanic
f75bc3e00d add postgresql 2018-05-07 15:28:38 +00:00
Alex Fabijanic
55e56b668d data fixes (getters constness, string any handling) 2018-05-07 15:23:19 +00:00
Alex Fabijanic
fa042447a4 regenerate mysql vs projects 2018-05-07 15:22:12 +00:00
Francis ANDRE
cb3c31b4c6 Update Gradle build 2018-05-03 18:04:59 +02:00
zosrothko
215bd88183 Fix ODBC:testsuite build 2018-05-02 23:00:58 +02:00
zosrothko
0ae3bbda13 Use closure to add specific platform c++ code 2018-05-02 22:25:50 +02:00
zosrothko
821a88dd1a Gradle udpate 2018-05-02 15:49:58 +02:00
zosrothko
090d24dce4 Fix for Data/SQLite on Linux 2018-05-02 15:03:08 +02:00
Francis ANDRE
5ee68dc96f Readd Data/SQLite 2018-05-02 14:26:59 +02:00
zosrothko
8ed0f82b64 Update gradle 2018-04-20 13:26:38 +02:00
zosrothko
ca03c6b471 Update gradle 2018-04-20 13:25:51 +02:00
zosrothko
9f1c03da4d Update gradle 2018-04-18 10:21:50 +02:00
jiajen
27e7e532cc Fix #2277 (#2278) 2018-04-10 08:18:55 -06:00
Francis ANDRE
46898f3750 Add display of targetPlatform.name 2018-03-31 11:21:37 +02:00
zosrothko
2ca964c699 Fix PrebuildLibrary 2018-03-31 11:05:43 +02:00
Francis ANDRE
530e7b585a Cleanup Windows libs 2018-03-29 20:47:12 +02:00
Francis ANDRE
502462c4bd Rename poco_assertTrue to poco_assert 2018-03-29 15:42:54 +02:00
Francis ANDRE
b388dc6371 Rename poco_assertTrue to poco_assert 2018-03-29 14:50:34 +02:00
Francis ANDRE
e4d4315a88 Missing assertTrue 2018-03-29 14:09:26 +02:00
Francis ANDRE
dd8c25d7ae Rename assert by assertTrue 2018-03-29 12:25:29 +02:00
Günter Obiltschnig
ccefee0d55 Poco::Data::SQLite data types #703 2018-03-06 19:11:51 +01:00
Joerg-Christian Boehme
9feabc7723 Add android build on travis (#1981)
* Add build for android in travis CI.

* Fix review findings. Change from __ANDORID__ to POCO_ANDROID

* Add android test

* Fix compile issue after rebase

* Ignore test big ping when its failing
2018-02-26 18:54:40 -06:00
Günter Obiltschnig
04c884a5f4 upgrade bundled sqlite to 3.22.0 2018-02-17 10:41:47 +01:00
Alex Fabijanic
d9bff00222 POCO SQLite Data Connector hangs #2108 2018-02-09 08:29:26 -06:00
Aleksandar Fabijanic
d007edb8ca
remove empty comments 2017-12-19 09:30:11 +01:00
Alex Fabijanic
52cc7e669d Data/SQLite: Exception messages contain duplicate text #2012 2017-11-29 19:40:21 -06:00
Alex Fabijanic
21704830f1 SQLite not handling parameter count mismatch correctly #2020 2017-11-29 19:39:45 -06:00
Scott Talbert
1724e8ba53 Backport patches (#2006)
* Guard SQLITE_BUSY_SNAPSHOT which is not available in older SQLite releases

When building POCO unbundled with older versions of SQLite (such as on RHEL7)
SQLITE_BUSY_SNAPSHOT is not defined, so #ifdef guard it.

* Some of the samples need to link with PocoJSON

* Build parallelization issues #1730

* Fix building XMLStreamParser with unbundled expat
2017-11-20 09:31:20 -06:00
Guenter Obiltschnig
6acbe795b7 upgrade bundled sqlite to 3.21.0 2017-11-09 13:07:39 +01:00
Günter Obiltschnig
88ce18e198 fixed GH #1404: Add Poco::Data::Statement::bind() method 2017-11-08 19:30:40 +01:00
zosrothko
f2e58c17e8 Add Gradle build scripts. 2017-10-31 09:07:53 +01:00
Alex Fabijanic
1b2bd22d34 wrong field size calculation in ODBC code #1659 and other develop backports 2017-10-30 13:24:32 -05:00
Alex Fabijanic
43195651af Poco::Data ODBC impl doesn't bind to unsigned numeric types properly #1683 2017-10-20 22:14:07 -05:00
Alex Fabijanic
94e9f2eec2 getConnectionTimeout of SQLite DB wrapper returns wrong value (in milliseconds, should be in seconds) #1729 2017-10-12 20:46:53 -05:00
Alex Fabijanic
c7f105d1cd DateTime wrong binding/extraction for MySQL database #1897; add docker mysql runtests 2017-10-07 12:43:04 -05:00
Günter Obiltschnig
04e7e04d4d Remove \$Id`$ headers 2017-09-09 11:14:06 +02:00
Guenter Obiltschnig
c7a11d5722 upgrade bundled sqlite to 3.20.1 2017-09-01 19:54:41 +02:00
Günter Obiltschnig
da6e1d97ef upgraded bundled sqlite to 3.20.0 2017-08-12 20:53:08 +02:00
Guenter Obiltschnig
f10d3a28f3 added Visual Studio 2017 project files 2017-02-20 16:20:16 +01:00
Guenter Obiltschnig
2de97f7ef4 fixed file headers 2017-02-18 14:30:54 +01:00
Guenter Obiltschnig
6548da5678 fixed docs 2017-02-18 14:03:55 +01:00
Guenter Obiltschnig
39ef64eead GH #1558: upgrade bundled SQLite to 3.16.2 2017-02-11 20:07:10 +01:00
Guenter Obiltschnig
f88eaabcea fixed GH #1571: ODBC Preparator memory leak 2017-02-11 12:24:36 +01:00
Guenter Obiltschnig
642bf58480 fixed GH #1532: RecordSet and RowFilter: bad use of reference counter 2016-12-30 10:06:06 +01:00
Guenter Obiltschnig
ba4a5af389 fixed GH #1461: Poco::Data::SQLite::SQLiteStatementImpl::next() error 2016-12-07 13:05:24 +01:00
Guenter Obiltschnig
77df1f6d3f fixed GH #1436: ODBC Bug: Unicode text(NVARCHAT) read from DB is truncated to half. 2016-12-07 12:55:40 +01:00
Jan Viktorin
45642a3d4f Support ODBC GUID data type as string
The ODBC defines SQL_GUID datatype in sqlext.h. It is used
e.g. for transfer of UUID datatype from PostgreSQL.

Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
2016-11-12 21:25:23 +01:00
Jan Viktorin
97cbd9f03d ODBC: fix uninitialized variable
This prevents valgrind reports like:

==18426== Conditional jump or move depends on uninitialised value(s)
==18426==    at 0x6423EB5: Poco::Data::StatementImpl::execute(bool const&) (in /usr/lib/libPocoDatad.so.46)
==18426==    by 0x641DB5F: Poco::Data::Statement::execute(bool) (in /usr/lib/libPocoDatad.so.46)
==18426==    by 0x632A0C: Poco::Data::Keywords::now(Poco::Data::Statement&) (Statement.h:443)
==18426==    by 0x641C8E5: Poco::Data::Statement::operator,(void (*)(Poco::Data::Statement&)) (in /usr/lib/libPocoDatad.so.46)
...
==18426==  Uninitialised value was created by a stack allocation
==18426==    at 0x6A1A170: Poco::Data::ODBC::ODBCStatementImpl::affectedRowCount() const (in /usr/lib/libPocoDataODBCd.so.46)

Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
2016-11-10 19:52:38 +01:00
Guenter Obiltschnig
91f0b270a6 fixed GH #1464: ODBCMetaColumn::init() always maps integer NUMERIC/DECIMAL to Int32 2016-10-22 10:06:43 +02:00
Guenter Obiltschnig
c4c5f18b97 fixed typo in testsuite 2016-10-14 11:51:23 +02:00
Guenter Obiltschnig
22a5def393 initialize all members in ctor 2016-09-26 18:10:07 +02:00
Guenter Obiltschnig
26ccbe2504 fixed uninitialized members in ctor 2016-09-26 17:50:28 +02:00
Guenter Obiltschnig
5ad31f2236 initialize all members in default ctor 2016-09-26 17:42:01 +02:00
Guenter Obiltschnig
0a1a4f70dd style fix 2016-09-26 17:00:20 +02:00
Guenter Obiltschnig
8a9b7abe2f bugfix: _null member not initialized in ctor 2016-09-26 16:53:59 +02:00
Guenter Obiltschnig
f3e0bf540d handle connection lost/server gone error when starting a transaction 2016-09-15 12:02:52 +02:00
Guenter Obiltschnig
7c37f18f84 fixed some warnings and minor issues detected by clang-analyzer 2016-09-13 11:37:12 +02:00
Guenter Obiltschnig
154a202142 don't include connection string in exception message 2016-09-11 01:41:42 +02:00
Günter Obiltschnig
04ade7b2b2 fixed GH #1252: Unable to compile Poco::Data for Windows Compact Embedded 2013 2016-08-27 11:14:24 +02:00
Guenter Obiltschnig
4232d0b497 updated sqlite to 3.14.1 2016-08-27 08:45:01 +02:00
Guenter Obiltschnig
d62a3bed69 fixed GH #1300: Session constructor hangs 2016-07-03 14:13:40 +02:00
Guenter Obiltschnig
65ef15d98f upgraded bundled SQLite to 3.13.0 2016-07-03 11:16:47 +02:00
Guenter Obiltschnig
b530485f92 #1221: upgrade bundled sqlite to 3.12.2 2016-04-21 10:08:36 +02:00
Guenter Obiltschnig
4ee483d930 style fixes 2016-04-16 09:49:03 +02:00
Guenter Obiltschnig
0c91f8714d upgraded bundled SQLite to 3.12.1 2016-04-11 10:47:55 +02:00
Guenter Obiltschnig
ed23f24639 fixed GH #1236: Remove Poco::Data::Row::checkEmpty() as it prevents Row from being used with all NULL rows 2016-04-11 10:38:33 +02:00
Guenter Obiltschnig
089dd0e2d2 upgraded bundled sqlite to 3.11.1 2016-03-19 07:59:18 +01:00
Guenter Obiltschnig
6f44a02a65 another fix for #1203: need to reset _rowMap as well. Also, don't hide reset() from base class 2016-03-17 10:07:40 +01:00
Guenter Obiltschnig
58751caca0 fixed GH# #1203: Poco::Data::RecordSet should be reusable 2016-03-17 09:15:23 +01:00
Guenter Obiltschnig
6572db8df0 better logging if rollback fails with Exception 2016-03-12 20:39:51 +01:00
Guenter Obiltschnig
2500d55297 fixed typo 2016-03-12 20:20:35 +01:00
Guenter Obiltschnig
dcfc20a247 another attempt at #1187: retry mysql_stmt_prepare if server has gone away 2016-03-11 14:46:32 +01:00
Guenter Obiltschnig
9a81312bcf fix for #1187: don't set timeout to zero 2016-03-10 21:29:11 +01:00
Guenter Obiltschnig
8b5761c78a fixed GH #1171: Poco::Data::RecordSet: rowCount not reset after execute 2016-03-04 14:03:25 +01:00
Guenter Obiltschnig
4da3f6e645 fixed ODBC testsuite driver 2016-03-04 12:26:24 +01:00
Guenter Obiltschnig
d5a08a8564 added explicit connector registration 2016-03-01 18:31:50 +01:00