Commit Graph

232 Commits

Author SHA1 Message Date
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
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
Günter Obiltschnig
04e7e04d4d Remove \$Id`$ headers 2017-09-09 11:14:06 +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
f88eaabcea fixed GH #1571: ODBC Preparator memory leak 2017-02-11 12:24:36 +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
4ee483d930 style fixes 2016-04-16 09:49:03 +02:00
Guenter Obiltschnig
4da3f6e645 fixed ODBC testsuite driver 2016-03-04 12:26:24 +01:00
Guenter Obiltschnig
b3a503c13e removed automatic Connector registration in ODBC and SQLite 2016-03-01 17:40:58 +01:00
FrancisANDRE
4d9c94c9fa use .dll.a extension for Cygwin
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-10 14:05:12 +01:00
Guenter Obiltschnig
e25a17030d integrated CMake improvements from develop (GH #946) 2015-09-26 11:11:23 +02:00
Günter Obiltschnig
4f0b692d66 added project and solution files for VS2015 2015-08-01 10:29:32 +02:00
Sascha Zelzer
10425a9556 Do not overwrite CMAKE_PREFIX_PATH in component config files.
This fixes problems when a project adds a directory to
CMAKE_PREFIX_PATH, then calls find_package(Poco ...) and afterwards
calls find_package() for another project located in one of the
directories of the original CMAKE_PREFIX_PATH variable.
2015-02-04 04:35:23 +01:00
Pascal Bach
f778e67430 CMake: Improve installation and package generation
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
2015-01-27 15:52:18 +01:00
Pascal Bach
10ef2b2335 CMake: Remove WinDriver usage in tests
Add WinCEDriver to packages supporting it
2014-12-21 16:23:35 +01:00
Aleksandar Fabijanic
86b81bfcbd GH #499: Poco::Data::Statement::execute returns wrong value when zero results (ODBC) 2014-12-17 23:36:26 -06:00
Guenter Obiltschnig
931a5a5252 Removing support for Visual Studio.NET 2003 and Visual Studio 2005 - it's time to say goodbye to the past 2014-12-15 11:05:13 +01:00
Günter Obiltschnig
bc0978d01e fixed GH #471: vs2010 release builds have optimization disabled
fixed GH #616: Visual Studio warning C4244
2014-11-20 21:22:52 +01:00
Pascal Bach
b69fafb84c CMake: Create PocoConfig.cmake to make importable from other CMake projects
The generated PocoConfig.cmake can be used by other CMake projects using find_package.
2014-10-14 17:58:46 +02:00
Alex Fabijanic
63a9c7cd2a GH #512: Poco:Data:ODBC:Binder.h causes a crash 2014-10-10 21:12:44 -05:00
Günter Obiltschnig
6fe2e4fb11 VS project files: do not share intermediate directory between projects in same folder 2014-10-06 13:51:49 +02:00
Günter Obiltschnig
a2617235fe #538 more dtor fixes and some style fixes along the way 2014-09-29 12:09:01 +02:00
Guenter Obiltschnig
85fd968a1e #538 prevent destructors from throwing exceptions 2014-09-19 10:13:03 +02:00
Matyas Dolak
d434d3cb12 Fixed ODBC WString size handling.
This fixes a bug where Poco would return a string 1 character shorter than is actually in the DB (when the string in the DB uses the full length of a CHAR(N) or VARCHAR(N) column).
2014-09-16 15:23:03 +02:00
Pascal Bach
7950001803 cmake: Cleanup CMakeLists.txt for all components
- Add missing CMakeLists.txt
- Use POCO_ macros to improve code structure in XCode/VisualStudio
- Better ODBC detection
- Remove unnecessary commented out code

The CMake documentation recommends explicitly listing source files, but because CMake is not the primary build system GLOB patterns are used for the moment.
2014-08-22 17:11:03 +02:00
Christopher Baker
e469e4fc62 Fix static init exceptions for MinGW*. 2014-08-21 14:27:51 -05:00
Günter Obiltschnig
30bb18f394 added VS2013 project/solution files for Windows Embedded Compact 2013 2014-08-09 10:49:04 +02:00
Mattes Dolak
ae3cc71263 Fixed ODBC on Win64.
The SQLGetConnectAttr() function can write up to 64-bit integers, as documented by MSDN here: http://msdn.microsoft.com/en-us/library/ms710297%28v=vs.85%29.aspx
This fix uses 64-bit integers instead of 32-bit ones, the original code corrupted the stack when used on win7-x64 with MSSQL 2008.
2014-07-16 09:19:03 +02:00
Pascal Bach
0fd90ec722 cmake: Data cleanup
- explicitly list files
- use find_package for MySQL and ODBC
- remove unused code
- remove unnecessary include dirs
- support unbundled SQLite3
- replace tabs by spaces

Reviewed-by: Roger Meier <r.meier@siemens.com>
2014-07-10 09:15:06 +02:00
Alex Fabijanic
7a92e72bc8 Fix: HandleExeption assignment operator calls itself 2014-06-09 03:05:25 -05:00
Josh Blum
f442148670 poco: library install dirs per RUNTIME/LIBRARY/ARCHIVE
For a unix system, this commit implies no changes by default. However, the ${LIB_SUFFIX} convention was added so the build can be configured for a red-hat style installation which uses lib64 by specifying cmake -DLIB_SUFFIX=64

For a windows build (msvc), this commit will cause the .dll files to be installed in the bin/ path; import libraries .lib are still installed in the lib/ path. Installing dlls into the bin path is preferable because dlls must be in the executable %PATH% to be found at runtime, as there is not equivalent of a separate library path as there is on unix.
2014-05-21 14:16:34 -07:00
Alex Fabijanic
1aa28e1491 GH #290: Unicode support 2014-05-21 03:28:24 -05: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
Alex Fabijanic
609a35578c cleared some 64-bit warnings and test failures 2014-05-13 04:06:00 -05: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
Alex Fabijanic
ba3a8b08c5 GH #341: Compiling poco-1.5.2 for Cygwin 2014-04-29 23:06:01 -05:00
Alex Fabijanic
8a9e7792d9 - fixed GH #362: Defect in Var::parseString when there is no space between value and newline
- fixed GH #314: JSON parsing bug
- added GH #313: MetaColumn additions for Data::ODBC and Data::SQLite
2014-04-29 21:25:30 -05:00
Günter Obiltschnig
85873d02c9 re-generated VS2013 testsuite projects without MFC 2014-04-21 22:10:34 +02:00
Günter Obiltschnig
12c7bb562d re-generated vs100-vs120 project files 2014-04-21 10:50:51 +02:00
Guenter Obiltschnig
af51162455 fixed GH# 350: Memory leak in Data/ODBC with BLOB 2013-12-18 19:34:03 +01:00
Alex Fabijanic
1c732e9938 removed MFC dependencies (WinTestRunner) from test VS projects 2013-11-07 23:31:30 -06:00
Alex Fabijanic
4297d78621 VS 2013 projects/solutions 2013-11-05 23:11:28 -06:00
Guenter Obiltschnig
4923172241 build system fixes 2013-09-18 20:12:27 +02:00