Commit Graph

226 Commits

Author SHA1 Message Date
Francis ANDRE
dd8c25d7ae Rename assert by assertTrue 2018-03-29 12:25:29 +02: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
zosrothko
f2e58c17e8 Add Gradle build scripts. 2017-10-31 09:07:53 +01: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
f10d3a28f3 added Visual Studio 2017 project files 2017-02-20 16:20:16 +01:00
Guenter Obiltschnig
6548da5678 fixed docs 2017-02-18 14:03:55 +01:00
Guenter Obiltschnig
f3e0bf540d handle connection lost/server gone error when starting a transaction 2016-09-15 12:02:52 +02: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
ce4341e96b removed automatic registration as it can cause a deadlock in mysql_library_init 2016-03-01 11:48:14 +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
Aleksandar Fabijanic
76573294e5 Fix for #641 MySQL - LONGBLOB problem on 64-bit systems 2014-12-16 19:24:33 -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
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
Guenter Obiltschnig
85fd968a1e #538 prevent destructors from throwing exceptions 2014-09-19 10:13: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
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
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
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
0a61d7a2b9 GH #154 Add support for MYSQL_TYPE_NEWDECIMAL
GH #154 Add support for MYSQL_TYPE_NEWDECIMAL to Poco::Data::MySQL
2014-05-12 02:41:48 -05:00
Alex Fabijanic
74176f7c90 restore id and add tested DB version 2014-05-05 20:10:14 -05:00
Alex Fabijanic
ea56db0e55 restore SPDX license 2014-05-05 20:00:25 -05:00
Alex Fabijanic
3d36b0a8c5 mysql test db autocreate 2014-05-05 19:55:16 -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
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
latitude37s
58121249c7 Fixed setting of MYSQL_BIND is_unsigned value. 2013-12-19 18:00:19 +00:00
latitude37s
89a4fd6dd6 fieldSize() returns std::size_t, which is not necessarily the same width as unsigned long. 2013-12-19 17:05:50 +00:00
latitude37s
e94075c023 Correctly set MySQL time_type for Poco::Data::Date. 2013-12-19 16:50:38 +00:00
latitude37s
a1792fa833 Removed redundant #includes and fixed spelling mistakes. 2013-12-19 16:32:55 +00:00
Guenter Obiltschnig
8f07db4aa3 various fixes - see CHANGELOG 2013-11-14 21:54:41 +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
Yuan Pengfei
1324366974 Add MySQL charset configuration support 2013-07-25 08:19:52 +08:00
Günter Obiltschnig
c7f873eee8 added missing x64_vs90 project files, fixed Util x64 project files, fixed some warnings 2013-07-22 20:44:35 +02:00
Guenter Obiltschnig
d09a728029 MySQL: accept BLOBs type for strings 2013-07-18 12:37:38 +02:00
Alex
ae7fe5f4be fix MySQLTest info calls 2013-06-09 13:41:36 -05: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
Cameron Smith
af84d915d0 Added new test to test case list. 2013-06-07 15:57:22 -04:00
Cameron Smith
07f33b729a GH #192: Unsigned integer values not handled properly in result sets 2013-06-07 15:14:18 -04:00
Alex
e06fec0e24 MySQL test TypeHandler SharedPtrs 2013-04-28 21:17:20 -05:00
Aleksandar Fabijanic
9663074e9e clang/mac fixes 2013-04-28 12:49:02 -05:00
Aleksandar Fabijanic
a50823c5a8 data housekeeping
- removed naked pointers from Data interfaces
- fixed GH #82: name conflict in Data::Keywords::bind
- fixed GH #157: MySQL: cannot bind to 'long' data type on
Windows/Visual C++
- fixed GH #158: MySQL: MYSQL_BIND 'is_unsigned' member is not set
2013-04-28 12:34:07 -05:00
aleks-f
ce666f84f1 added missing Data x64 solutions for VS 2010
- fixed GH #102: Some subprojects don't have x64 solutions for VS 2010
2013-03-19 21:41:57 -05:00
Adrian Imboden
453946edcf MySQL: Take mysql_affected_rows returning -1 into account (was not a SELECT statement) 2013-02-22 00:05:21 +01:00
Adrian Imboden
7354622810 Updated MySQL UnitTest 2013-02-21 21:59:52 +01:00
Adrian Imboden
4ce851672a MySQL: Implemented affectedRowCount 2013-02-21 20:34:20 +01:00
aleks-f
9378680c0b Merge remote-tracking branch 'origin/ip-address-soo' into develop 2013-02-17 16:33:44 -06:00
aleks-f
9ea546d981 more callbacks and transaction tests
- added callbacks for commit and rollback with tests
- added transaction tests
2013-02-17 15:12:07 -06:00
Adrian Imboden
6149beb920 Fixed bug: Pointers to vector internas were given away and became invalid because of resizing the vector 2013-02-12 23:43:02 +01:00
aleks-f
4bcddad43e auto-init for db back-ends
Auto initialization for all DB back-ends and some tidy-up for network
windows auto initialization
2013-02-10 09:06:54 -06:00
aleks-f
76a7e2e716 GH56: Need a way to disable *_API macros with GCC
GH #56: Need a way to disable *_API macros with GCC
2013-01-13 10:31:21 -06:00
aleks-f
e75081af94 added Token::asInteger64(); ODBC tests fix for case-sensitive DB 2012-12-16 19:45:38 -06:00
aleks-f
e837015176 separate tests for Date/Time 2012-12-15 10:22:34 -06:00
aleks-f
be73b11b54 test db address 2012-12-14 19:55:46 -06:00
aleks-f
413db6d246 clean temp file garbage 2012-12-14 19:53:59 -06:00
aleks-f
2a81e59e8c MySQL DateTime support, samples Linux compile 2012-12-14 19:48:10 -06:00
aleks-f
ef9cda6666 GH #26: Cannot compile on gcc
GH #26: Cannot compile on gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 using
compiler flag pedantic
2012-12-12 23:02:20 -06:00
Mathäus Mendel
e3649153b8 Fixed build with CMake
Used CMAKE_DEBUG_POSTFIX instead LIB_EXT for library name decoration on debug builds (less intrusive and more flexible)
2012-12-08 15:54:38 -02:00
aleks-f
eaa74307a6 see CHANGELOG
- added Poco::istring (case-insensitive string) and Poco::isubstr
(case-insensitive substring search)
- improved SQLite execute() return (affected rows) value
- added SQLite sys.dual (in-memory system table)
- applied SF Patch #120: The ExpireLRUCache does not compile with a
tuple as key on Visual Studio 2010
- fixed SF Bug #599: JSON::Array and JSON::Object size() member can
implicitly lose precision
- fixed SF Bug #602: iterating database table rows not correct if no
data in table
- fixed SF Bug #603: count() is missing in HashMap
- fixed GH #23: JSON::Object::stringify throw BadCastException
- fixed GH #16: NetworkInterface::firstAddress() should not throw on
unconfigured interfaces
- Android compile/build support (by Rangel Reale)
- TypeHandler::prepare() now takes const-reference
2012-12-04 23:33:44 -06:00
Guenter Obiltschnig
87d7739f3d removed .vcxproj.user files 2012-11-11 10:53:02 +01:00
Guenter Obiltschnig
79eab26377 the great line endings cleanup 2012-11-11 09:57:01 +01:00
Guenter Obiltschnig
f5351b2f49 fixed 2012/64 project files 2012-10-14 14:55:49 +00:00
Guenter Obiltschnig
b90307c200 fixed vs2010 testsuite project files 2012-10-14 10:50:44 +00:00
Guenter Obiltschnig
d1e912ed46 fixed project files 2012-10-14 08:58:13 +00:00
Guenter Obiltschnig
cfcdace422 missing project files 2012-10-14 07:56:57 +00:00
Guenter Obiltschnig
4fd9628511 set WINVER to 0x501 2012-10-14 07:46:25 +00:00
Aleksandar Fabijanic
fb275a9a30 Visual Studio 2012 projects and solutions files 2012-09-25 05:35:44 +00:00
Guenter Obiltschnig
984d8a5617 added release packaging and doc building scripts, fixed some osx build issues 2012-09-25 02:24:56 +00:00
Aleksandar Fabijanic
248d52164d #310 Connect to MySQL db without specifying database name. 2012-09-23 20:52:02 +00:00
Aleksandar Fabijanic
883de9670a Windows/VS2011 build all configs 2012-09-23 06:28:42 +00:00
Aleksandar Fabijanic
26d488044c native MySQL, ODBC, Nullable; OSX compile, tests and fixes 2012-09-22 02:16:58 +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
69be5d7e98 - VS 80 build & OS version detection
- SF #3564756: iOS trunk compile fix
2012-09-11 02:02:23 +00:00
Aleksandar Fabijanic
95c3e8871e Linux 64-bit and static build fixes (only Ubuntu build tested) 2012-07-07 16:03:21 +00:00
Marian Krivos
114de565ff added cmake support 2012-06-26 12:37:02 +00:00
Aleksandar Fabijanic
e60cb0f58e more new and modified build files 2012-06-25 02:13:06 +00:00
Aleksandar Fabijanic
b8503b5972 - change PocoODBC (SQLite, MySQL) to PocoDataODBC (SQLite, MySQL)
- regenerate VS 71,80,90 projects
- generate VS 71,90 projects for PDF
2012-06-25 00:48:59 +00:00
Aleksandar Fabijanic
5a639074d9 change EOL to 'native' 2012-04-29 18:52:25 +00:00
Marian Krivos
a0daaba97e fix gmake on linux 2012-04-23 10:24:48 +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
Guenter Obiltschnig
2ce14cafb5 added progen files 2012-04-20 15:33:17 +00:00
Marian Krivos
a002f13be2 trunk: updated standard VS2010 sln to include x64 support (all in one) 2012-02-11 12:13:15 +00:00
Marian Krivos
8b70c37260 trunk: sync from 1.4.3
make & cmake fixes
2012-02-04 17:03:09 +00:00
Marian Krivos
218b06621d trunk: split cmake debug/optimize build 2 2012-01-08 19:10:15 +00:00
Marian Krivos
7cb622a445 trunk: split cmake debug/optimize build 2012-01-07 13:45:03 +00:00
Marian Krivos
59270fc991 fix ODBC/MySQL header/library name 2011-09-22 14:53:57 +00:00
Marian Krivos
eb266f8a57 Set cmake produced shared libraries numbering to standard scheme (trunk = 12)
Sync latest Foundation changes from 1.4.2
2011-09-15 08:31:51 +00:00
Marian Krivos
8aa4425690 cmake fixes 2011-09-14 18:22:50 +00:00
Marian Krivos
cd1ea5980c rename PocoXXXX to PocoDataXXXX 2011-09-14 13:23:36 +00:00
Marian Krivos
a0064a855c Foundation: VS project imports 2011-09-09 19:08:24 +00:00
Marian Krivos
0ac146cb9e cmake improvements: test and samples are from now disabled by default, you can enable this option with cmdline option to cmake: '-DENABLE_TESTS=1'
minimum required CMAKE version is 2.6 from now
2011-01-22 11:46:03 +00:00
Marian Krivos
c5b2daa36c cmake build system fix - debug version of ther library was striped and vice versa 2009-08-26 12:26:22 +00:00
Marian Krivos
1afd0a8328 bugfix #2781776 - cmake instals .svn directories 2009-04-27 19:22:30 +00:00
Marian Krivos
4faf23e1e7 added test for MySQL API version with respect to mysql_option() 2009-03-08 13:45:58 +00:00
Marian Krivos
a33fb4a4b5 compile fix: thirdth parameter of mysql_option() 2009-03-07 14:59:56 +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
Marian Krivos
2c304d744d adaptation cmake scripts to current MinGW platform (exclude SSL/Crypto/MySQL/Apache/ODBC) 2009-02-22 19:58:27 +00:00
Marian Krivos
ac01609444 cmake scripts for all tests 2009-02-21 20:19:53 +00:00
Marian Krivos
c4dc4b70d3 mising include <cstring> 2009-02-18 20:48:26 +00:00
Marian Krivos
16cdb4b127 cmake runtime install support (headers+libs) 2009-02-18 20:47:32 +00:00
Aleksandar Fabijanic
0f98824311 Poco::UInt32 => std::size_t 2009-02-16 15:12:03 +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
363711ed39 SessionPoolContainer::get() fix
few documentation fixes
consolidated redundant MySQL connection params
2009-01-15 17:01:34 +00:00
Aleksandar Fabijanic
b38f5ce99c [SF 2505290] DB connection as URI (MySQL not tested!) 2009-01-13 19:51:48 +00:00
Aleksandar Fabijanic
a42e8d919b [SF 2272430] BLOB and CLOB
Renamed:
(Abstract)Preparation => (Abstract)Preparator
(Abstract)Prepare => (Abstract)Preparation
2008-11-24 00:38:23 +00:00
Guenter Obiltschnig
585a7f147b fixed SF# 2123231 ] MySQL MEDIUMINT support 2008-09-26 08:07:24 +00:00
Aleksandar Fabijanic
6ca0056f79 Solaris test compile/run 2008-09-22 18:13:54 +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
3e65280dc1 artificial limit for bind parameters removed. 2008-07-29 16:44:13 +00:00
Aleksandar Fabijanic
3ca6a9775c VS 90 files for MySQL connector; components file update 2008-06-25 11:59:27 +00:00
Sergey Kholodilov
1641bb56ce =database and user name changed 2008-06-25 11:03:17 +00:00
Sergey Kholodilov
33efbefa71 =MySQL connector 2008-06-25 10:42:16 +00:00