Commit Graph

53 Commits

Author SHA1 Message Date
Francis ANDRE
dcf31bdbcf Add missing PocoCppUnit.lib dependency 2019-11-24 13:33:44 +01:00
Günter Obiltschnig
bd0235b4b0 include version resource in DLLs built with CMake 2019-06-24 15:42:23 +02:00
Günter Obiltschnig
bebdc6a50c Upgraded bundled SQLite to version 3.28.0 2019-06-22 18:36:42 +02:00
lmayencourt
bd98f5cedf Fix cross-compilation against Poco pre-built (#2599)
* Use ZLIB and PCRE imported target to improve portability
* Set EXPAT and SQLite3 library for XML and SQL if POCO_UNBUNDLED is true in cmake build
2019-04-20 18:53:48 +02:00
tnikolov
8c8473083b Replace deprecated width in html and include DOCTYPE html 2019-03-26 20:44:39 +01:00
Günter Obiltschnig
b113c6a33d Merge pull request #2571 from dandugula/develop
Data -> SQL: Fix header comment tags #2447
2019-02-20 19:59:23 -05:00
Francis ANDRE
31299f6d43 Remove useless #include <windows.h>
Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>
2019-02-09 17:29:13 +01:00
Francis ANDRE
133d6484d2 Fix typo in the header line of the Visual Studio Solution File
Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>
2019-02-09 15:06:24 +01:00
Chaitanya Dandugula
85eddf7402 Replaced the header tag
// Library: Data

with

// Library: SQL
2018-12-20 14:01:45 +05:30
Chaitanya Dandugula
1f0a04469e Replaced header tags
// Library: Data
// Package: DataCore

With

// Library: SQL
// Package: SQLCore
2018-12-20 13:57:52 +05:30
Günter Obiltschnig
45b44e0400 upgrade bundled SQLite to 3.26.0 2018-12-17 16:19:33 +01:00
Erbengi
759b4dd164 Merge bugfix #2546 from poco-1.9.1 (#2548)
* Merge bugfix #2546 from poco-1.9.1

* Fixed ODBC SessionImpl

* Fixed missing methods in PostresSQL and testsuit

* Fixed missing method in SQLite SessionImpl

* Use mysql_refresh() instead of mysql_reset_connection()

* 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-27 08:29:40 -06:00
Aleksmia
e60ece37d4 Feature PosgreSQL copy in (#2529)
* Added unit-test for testing support COPY FROM feature of PostgreSQL

Test try execute simple usage of COPY FROM with batch of data such as std::vector<int>

* Made main logic of feature COPY IN for SQL/PostgreSQL

* Added bulk binding for general types.
* Added support of bulk bindings for user types. For supporting this feature user needs implement
yet another TypeHandler<> for std::vector<T> which contains pointer to SQL::PostgreSQL::Binder in
params instead of SQL::Binder.
* Added yet another test-case for testing usage COPY IN with user types.

Other functionality need implement by developing COPY OUT feature.

* Check with a large number of objects

* Added tests for complex inserting thru std::list<> and std::deque<> by COPY IN mode

* Made feature COPY IN for batches of data like std::list<> and std::deque<>

* Changed spaces to tabs and was a little refactoring

* Fix new line in for-loops
2018-11-27 08:20:29 -06:00
Günter Obiltschnig
7e83676cf9 fixed GH #2538: Poco::Data::Session::connector() returns empty string for MySQL session. 2018-11-11 20:51:55 +01:00
Joerg-Christian Boehme
a4a0052cc1 Merge cmake changes from poco-1.9.1 (#2505)
* Take changes from 1.9.1 for check cxxyy compiler support

* Get change from 1.9.1 branch. _DEBUG is set on Foundation library

* CMake improve find third-party libraries (#2478)

* Add additional settings for thirdparty paths and fix windows build

* Fix postgresql build on AppVeyor

* Add additional path for odbc windows kits

* Add test_compiler cpp

* Take changes from 1.9.1 for find MySQL modul

* Take changes from 1.9.1 for find ODBC modul

* Take changes from 1.9.1 for find PCRE modul

* Take changes from 1.9.1 for find PostgreSQL modul

* Take changes from 1.9.1 for find Apache2 modul

* Take cmake SQL changes from 1.9.1

* Take changes from 1.9.1 for MySQL cmake

* Take changes from 1.9.1 for ODBC cmake

* Take changes from 1.9.1 for PostgreSQL cmake

* Fix compile with c++11 standard

* Rename DISABLE_CPP14 to POCO_DISABLE_CPP14

* Fix cmake compile features

* Remove POCO_ENABLE_CPP11

* Enable compile 64bit in cmake for AppVeyor build

* Remove copy data directory for encoding test. It doesnt exists anymore

* Move __LCC__ define to MySQL
2018-10-18 07:11:38 +02:00
Günter Obiltschnig
5669a1ae3b fix SQLChannel documentation 2018-09-27 11:27:17 +02:00
Lyashenko Arsenii Maksimovich
223ce277bd Fix "redeclared without dllimport attribute..." warning for MinGW (#2433)
* Fix "redeclared without dllimport attribute..." warning for MinGW

* Use 'POCO_COMPILER_MSVC' instead of '_MSC_VER'.

* Define 'POCO_COMPILER_MINGW' with 'POCO_COMPILER_GCC' too

* Define 'POCO_UNUSED' for Clang too
2018-09-17 20:36:21 +02:00
Jonathan Hale
7c2512eb3b [Docs Only] Fix a few syntax errors in docs (#2434)
* SQL: Fix a few syntax errors in docs

Signed-off-by: Squareys <squareys@googlemail.com>

* JSON: Fix code example in Parser.h

Signed-off-by: Squareys <squareys@googlemail.com>
2018-08-29 17:40:52 +02:00
Lyashenko Arsenii Maksimovich
96753499cf MySQL support for MinGW (#2416)
* Add MySQL support for MinGW

* Add OpenSSL requirement for MySQL, if compiler is MinGW

* Use simpler logic
2018-08-16 08:07:04 -05:00
Marian Krivoš
f6d4951d1f Sqlite 3.24.0 2018-06-27 08:10:06 +02:00
Lyashenko Arsenii Maksimovich
0379a1e768 MinGW support (#2360)
* Add MinGW support (not full yet).

TODO list:
* Fix tests compilation (undefined reference to CppUnit::...)
* Fix SQLs compilation (No rule to make target '${LIBNAME}.dll.a', needed by '${LIBNAME}.dll'.  Stop.)
* Fix crypto executables compilation
* Test static compilation
* Test MSVC compilation
* Add unicode support

See pocoproject/poco#2356

* Code rearrange.

Also fix PDF test runner.

TODO list:
* Fix tests compilation (undefined reference to CppUnit::...)
* Add unicode support
* Resolve what to do with message compiler

See pocoproject/poco#2356

* Normal "_DLL" definition for MinGW. Add missing "Crypto_API" for several implementations. Add "POCO_NO_MINGW_UNICODE" for "wmain".

TODO list:
* Check PostgreSQL and MySQL
* Resolve what to do with message compiler

See pocoproject/poco#2356

* Test PostgreSQL. Fix message compiler problem.

See pocoproject/poco#2356

* Perform requested changes. Add WinCE check.

See pocoproject/poco#2360

* Perform requested changes #2. Delete WinCE check.

See pocoproject/poco#2360

* Perform requested changes #3. Net initializer should works now.

See pocoproject/poco#2360

* Fix invalid indent.

See pocoproject/poco#2360

* Correct definition of POCO_NO_MINGW_UNICODE.

See pocoproject/poco#2360

* Remove macro and set global linke flags for testing purpose

* Add -municode for mingw where wmain is used

* Delete "POCO_ENABLE_EXE_WMAIN". Add PollSet support.

See pocoproject/poco#2360

* Restore WinCE linker flags. Set _WIN32_WINNT in PollSet.cpp separately. Add var to disable MinGW wmain wrapper.

* Fix compilation.

* Fix missing argument name in functions "setEscapeUnicode" in JSON package.
2018-06-19 08:17:03 -07:00
Yegor Yefremov
6b9054dfa2 cmake: create and install pkg-config files (#2224)
* cmake: create and install pkg-config files

Automatically create and install *.pc files for selected components.

PocoFoundation.pc
PocoNet.pc
PocoUtil.pc
etc.
2018-06-12 20:42:19 +02:00
Francis ANDRE
67003eaa66 Merge branch 'develop' of https://github.com/pocoproject/poco.git into
develop

Conflicts:
	SQL/ODBC/testsuite/src/ODBCTest.cpp
2018-06-05 07:00:59 +02:00
Alex Fabijanic
849d7bd655 fix ODBC windows build and eliminate some warnings 2018-06-03 20:26:47 -05:00
Alex Fabijanic
864beb40a8 remove linux-specific code 2018-06-03 15:38:27 -05:00
Francis ANDRE
362939554d Guard dlopen function by #ifdef POCO_OS_FAMILY_UNIX 2018-06-03 21:49:44 +02:00
lavoiepatrick
56652302f0 Refactor string extractors to remove duplicate code, fix logic errors… (#2301)
* Refactor string extractors to remove duplicate code, fix logic errors and reduce the number of calls to SQLGetData().

* fix conflict

* fixed conflict

* merge from develop

* implement bulk insert of containers with nullable values

* fixing build error

* Delaying the creating of extractors until the statement is executed because SybaseIQ is not returning the correct column data until execution
2018-06-03 11:24:44 -05:00
Joerg-Christian Boehme
8a70ab8a1c Cleanup cmake build system (develop) to use transitive dependency management from cmake (#2322)
* Cleanup cmake Root CMakeLists.txt

* Cleanup cmake targets

* Add find openssl modul for older cmake version

* set proper scope

* Switch off make based builds in travis and appveyor

* Fix build break, set C11 on c file

* Set from C11 to C99

* Fix NetSSL win build

* Set C99 compile features

* Fix Windows build

* Fix windows build

* Revert "Fix windows build"

This reverts commit 678d44216bd964f61655df809efbf63ddd8a7bfd.

* Cleanup poco unbundle definition

* Fix PDF build

* Remove unused set affinity

* Add _AFXDLL as target compile definitions

* 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

* cleanup LIB_MODE_DEFINITIONS in cmake buld system

* Fix broken merge

* Fix android foundation test

* Fix old redis build version

* Fix android fondation test

* Cleanup target link libraries.

* Update cmake documentation

* Some fixese in crypto and netssl for win and some cleanup an SQL

* Minor fix in root CMakeList.txt

* Squashed commit of the following:

commit df050b56b6d81eaf9bdb37bb016fe9a3554eba4f

    Fix build dependecies in cmake

* Squashed commit of the following:

commit f41ce2bb404e197ff04b1e64f7b66c9a2b1e03c8

    Fix PostgreSQL build

* Squashed commit of the following:

commit b7da0deed67ffff23a8b7a50d6deff1e022b2577

    Set db hostnames

* Update doc

* Update cmake build commands

* Set public on target link libraries in cmake build

* Fix broken cppunit merge
2018-06-03 11:19:00 -05:00
Joerg-Christian Boehme
a3b0788e80 Update SQLite version from 3.21 to 3.22 to fix andorid build (#2341) 2018-05-30 10:57:52 -05:00
Alex Fabijanic
837b3ff9b8 add paths to postgres headers and libs 2018-05-04 21:04:24 +00:00
Marian Krivoš
42ef846651 Fix Visual Studio warnings at level /W4 (#2312)
* SharePtr fix for gcc 7.2

* Fix for Poco issue #2285

* Add missing fail() to sqlite test

* Fix for testIllegalFilePath

* Update SQLiteTest.cpp

* fixexes for Visual Studio and /W4 switch

* Fixed warnings for Foundation module

* Fixed warnings for JSON module

* Fixed warnings for XML module

* Fixed warnings for NET module

* Fix unfixable warning in VarHolder.h

* Fix Typo:

* Fixes for Net

* Fixes for Crypto

* Fixes for NetSSL

* Fixes for Zip

* Fixes for PDF

* Fixes for SQLite

* Fixes for SQLite

* Fixes for SQL

* Fixes for MongoDB

* Fixes for Redis

* Fixes for CppParser

* Fixes for CppUnit

* Fixes for PageCompiler

* Fixes for PostgreSQL

* Fixes for MySQL

* Fixes for SevenZip

* Last Warnings

* Fixes for ODBC

* fix std::type_info include
2018-05-04 08:47:40 -06:00
Francis ANDRE
f5a4afe898 Merge remote-tracking branch 'origin/develop' into develop 2018-05-04 13:46:43 +02:00
Alex Fabijanic
3a761e0fc0 improve (Dynamic)Any (unicode) string extraction handling 2018-05-04 03:33:40 +00:00
Alex Fabijanic
348290a55d fix broken VS solution 2018-05-04 03:32:56 +00:00
Aleksandar Fabijanic
4efaa99fff Add WeakRefPtr to Foundation #2246 (#2247)
* Logger & Channel classes now using AutoPtr<Channel> instead of Channel* (API improvement)

* fix CachingChannel

* more fixes

* Configuration: remove raw pointers from interfaces #2077

* Add WeakPtr to Foundation #2246

* Add WeakPtr to Foundation #2246 (buildsystems files)

* Add WeakPtr to Foundation #2246 (x64 VS project files)

* backtrace and Event fixes

* add ordered map

* add ordered set

* add sanitize makefiles

* update RefPtr doc

* fix AtomicCounter includes

* add ordered containers tests

* fix xml test compile error

* remove operator bool rom smart pointers

* Poco::strToInt<> fails for values right above the type's boundary / limit #2250

* add g++ -ftrapv config

* remove Version.h includes (now included from Config.h)

* comment out offending SQLite test (TODO)

* add AtomicFlag and SpinlockMutex

* remove RefCountedObject include from RefPtr and WeakRefPtr mutex template param

* add WeakRef SpinLockMutex threading test

* WeakRefPtr, backtrace, NDC, refcount DC fixes

* SQL fixes

* update RCO documentation

* XML/DOM: Remove raw pointers from public interfaces #2075

* few fixes

* PocoDoc - make logger non-static reference member

* remove path char array initialization

* Fix failing unit test, adding d in debug mode for TestApp and TestLibrary

* fix application config pointer

* fix some crypto warnings

* fix Process tests and consolidate TestApp name building

* define PathImpl::selfImpl for WinCE

* restore WinCE test app name extension

* attempt to passify 32 bit clang

* fix failing Active* tests

* Add POCO_OS_ANDROID support for Path::self()

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

* Remove to set LD_LIBRARY_PATH on foundation test

* revert to develop XML

* fix VS150 env not found (hardcode it)

* undef min/max
2018-05-02 16:04:39 -06:00
Francis ANDRE
b06c053238 Update Gradle script 2018-04-18 10:02:16 +02:00
Marian Krivoš
dc47e79da9 Fix for issue #2285 (#2286)
* SharePtr fix for gcc 7.2

* Fix for Poco issue #2285

* Add missing fail() to sqlite test

* Fix for testIllegalFilePath

* Update SQLiteTest.cpp
2018-04-13 16:25:07 -06:00
jiajen
49aa90738e Added check for null pointer before accessing and leaving SQLite mutex. (#2276)
* Added check for null pointer before accessing and leaving sqlite mutex.

* Update null pointer checks for SQLite mutex
2018-04-10 08:18:27 -06:00
zosrothko
b3d107de94 Replace assert by assertTrue (#2242)
* Update Nuget packaging

* Split a single Nuget package into 2: x86/x64 because its size is greater
than 250Mb, which is the upper limit of Bintray

* CppUnit/Test.h: Rename assert by assertTrue

* Restore poco_assert

* leave old assert for backward compatibility

* add undef

* remove whitespace

* Display PocoDic.ini

* Fix CppUnit includes path

* Delete TestCaller.h

* Create dependencies
2018-03-26 06:56:33 -06:00
Timothy Brackett
43cbd82b7f Fix #1241 Rename CMAKE Variables to allow grouping (#1437)
* Add macro to map ENABLE_* variables provided on CMake command-line to POCO_ENABLE_* variables.

* Properly map ENABLE_* values to POCO_ENABLE_* variables instead of assuming ON
2018-03-26 07:13:54 +02:00
Francis ANDRE
d3dbac877e Making each module a NuGet package does not work properly
when unloading modules with NuGet
2018-03-20 09:56:52 +01:00
Francis ANDRE
a285ef1c66 Package each module as a Nuget package. 2018-03-19 16:19:18 +01:00
Yegor Yefremov
742f4578fc cmake: use the standard CMake flag to drive the shared object build (#2057)
* cmake: use the standard CMake flag to drive the shared object build

* Add deprecated warning and build always shared test library
2018-03-12 20:15:24 +01:00
Joerg-Christian Boehme
a834aad0b1 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-03-05 22:02:40 +01:00
Alex Fabijanic
6844c65d84 POCO SQLite Data Connector hangs #2108 2018-02-09 08:57:37 -06:00
zosrothko
5fa3d6094e Backport of pocoproject/feature-gradle to pocoproject/develop (#2127)
* Backport of feature-gradle

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Replace '/' by '\' to comply with DOS path

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Cleanup

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Put environment setting at the Exec task.

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Use standard release

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Updated mkdoc configuration

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Remove lines guarded by POCO_ENABLE_CPP11

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Merge remote-tracking branch 'origin/develop' into develop

* Fix NuGet & Wix input dependencies file set.

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Remaining fixes for Data2SQL switch.

* Use $global:LastExitCode instead of a local LastExitCode
2018-02-09 08:05:15 -06:00
zosrothko
d8d4cbf1a7 Data2sql: additional fixes (#2144) 2018-02-07 16:57:48 -06:00
zosrothko
bb17cfb983 Data2sql: additional fixes (#2143) 2018-02-07 16:57:30 -06:00
zosrothko
6fae95d324 data2sql: Remaining fixes for VisualStudio vcxproj files (#2128)
* Remaining Data2SQL fixes

* Restore PocoDoc

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>
2018-02-02 08:14:39 -06:00
zosrothko
af4bc94777 Fix implied lib: PocoSQL... instead of PocoData... (#2116)
* Fix implied lib: PocoSQLODBC instead of PocoDataODBC

* Fix implied lib: PocoSQLMySQL instead of PocoDataMySQL
2018-01-26 17:18:41 -06:00