Commit Graph

4419 Commits

Author SHA1 Message Date
andred
a9598960e4 Error: simplify strerror_r() handling (#1647)
This is a simpler version of the existing strerror_r()
handling.

Idea borrowed from boost.asio:
  443bc17d13
2017-07-06 00:14:00 +02:00
Orlin Hristov
262079b0f0 Fix for issue #1043 (#1725)
* Fix for issue #1043

The fix for this issue was partially implemented in development branch.
However, there are still some issue, that were not covered:
1. The std::string overload will sets SQL_LONGVARCHAR as fSqlType if the
output parameter is of type VARCHAR(MAX)
2. The UTF16String overload of bind method:
a) always resolves fSqlType using the size of formal parameter const
std::string& val.
b) allocates half of the size of the SP's output parameter.
3. The _utf16Strings member is not sychronized in Binder::synchronize()
method.
4. The _utf16Strings member is not reset in Binder::reset() method.

* Fixed compiler error for GCC

Fixed compiler error caused by improper getting of UTF16String length in
Binder::synchronize()

* Fix input param initialization in unit test
2017-07-06 00:06:10 +02:00
OgreTransporter
3dfcc83257 Add workarround to handle static OpenSSL libs on Windows with CMake, fix NetSSL_Win samples and testsuite (#1733)
* Add workarround to handle static OpenSSL libs on Windows with CMake

* Fix NetSSL_Win samples and testsuite
2017-07-06 00:02:22 +02:00
zosrothko
62af826c88 When not defined, default VS150COMNTOOLS to C:\Program Files (#1787)
(x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\
See 
https://developercommunity.visualstudio.com/content/problem/13223/no-environmental-variable-vscomntools150.html
2017-07-05 23:58:19 +02:00
Alex Fabijanic
128c5c57eb rename 'separator' to 'frac'; develop: PostgreSQLTest: missing ExecUtil class #1788 2017-07-05 11:55:05 +02:00
Marian Krivoš
7f193697db Try to save the type for Var with Json serialize/deserialize (#1703)
* Fix JSON to Var parsing (save the type)

* fix formatting

* remove redundant include <iostream>

* fix c++98 compatibility
2017-07-03 23:33:32 +02:00
Alex Fabijanic
3ec9316ab0 localtime_r is not part of C++ #1746 2017-07-03 22:37:32 +02:00
Alex Fabijanic
72b826651f src/Var.cpp: 2 * sanity check in wrong place ? #1784 2017-07-03 21:03:50 +02:00
Alex Fabijanic
34826e3797 fix RowFilter refcount 2017-07-03 17:32:28 +02:00
Iskandar Safarov
d7d6b739a2 Exception in destructor (#1777)
* The destructor of BasicBufferedStreamBuf() calls Allocator::deallocate which can throw exceptions. In particular it throws Poco::SystemException when can't lock mutex.

* Added poco_unexpected(); into exception handler
2017-07-02 20:04:58 +02:00
Aleksandar Fabijanic
a33057d8fe Merge pull request #1778 from pocoproject/internal-ext-fix
ODBC RecordSet (internal extraction) broken #1775
2017-06-30 16:53:50 +02:00
Alex Fabijanic
5cad99a704 fix test table name 2017-06-30 16:51:07 +02:00
Alex Fabijanic
96bb22621e fix RowFilter refcounting, some cleanup 2017-06-30 16:13:56 +02:00
Alex Fabijanic
41e3f38c06 ODBC RecordSet (internal extraction) broken #1775; some style fixes 2017-06-29 23:49:42 +02:00
Alex Fabijanic
b3704e2275 add type diagnostics 2017-06-28 17:21:49 +02:00
Alex Fabijanic
12f61b8ccf Wrong limit check in Poco::Dynamic::Var #996 2017-06-27 18:33:48 +02:00
Alex Fabijanic
848d510fae simplify g++ check 2017-06-27 12:59:06 +02:00
Aleksandar Fabijanic
5d69bae19f Poco::Data::SQLite data types #703 (#1767) 2017-06-27 12:15:24 +02:00
Alex Fabijanic
4b4adb4459 fix clang warning 2017-06-27 11:58:50 +02:00
Alex Fabijanic
1f27dcf5c0 fix init order warning 2017-06-26 21:02:14 +02:00
Alex Fabijanic
303861cf11 replace Mutex with FastMutex 2017-06-22 23:09:22 +02:00
Alex Fabijanic
19417c57a9 add some comments 2017-06-22 22:46:19 +02:00
Alex Fabijanic
574fc131db add docker test run script 2017-06-22 22:43:07 +02:00
Alex Fabijanic
8aecf8a9b0 move mysql init to createSession() and protect it with mutex 2017-06-22 22:42:21 +02:00
Alex Fabijanic
2fd58d54bc Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2017-06-21 16:45:55 +02:00
Alex Fabijanic
18a5a380d2 additional tests for #1042 and #1642 2017-06-21 16:45:39 +02:00
Günter Obiltschnig
84f9bed805 fix for Windows 2017-06-21 16:29:11 +02:00
Guenter Obiltschnig
85879fb02d upgrade bundled expat to 2.2.1; apply POCO-specific changes 2017-06-21 16:28:51 +02:00
Alex Fabijanic
d866e7444d tests for #542 2017-06-21 14:56:33 +02:00
proller
6a49c94d18 Allow link application with double_conversion (#1560)
Without this linking fails with duplicate function names errors
2017-06-08 20:52:09 +02:00
Günter Obiltschnig
201e87900b Merge pull request #1689 from zosrothko/patch-1
Remove space around '=' in the generated config.make
2017-06-02 18:29:06 +02:00
Günter Obiltschnig
6467bc5aad Merge pull request #1690 from zosrothko/patch-2
Publish poco_trace & poco_debug macro even in release mode
2017-06-02 18:28:31 +02:00
Günter Obiltschnig
bcd148281f Merge pull request #1692 from Kampbell/honor-export-CXX-g++-4.8
Honor export cxx g++ 4.8
2017-06-02 18:27:40 +02:00
Günter Obiltschnig
ce5a0839eb Merge pull request #1713 from zosrothko/patch-5
Switch to MySql 5.7 on x86_64 arch
2017-06-02 18:25:59 +02:00
Günter Obiltschnig
973595e759 Merge pull request #1741 from wegylexy/patch-1
moved #endif to the correct place
2017-06-02 09:58:36 +02:00
TimTim
3c89b23109 moved #endif to the correct place 2017-06-01 17:47:32 +08:00
Aleksandar Fabijanic
076dd9679b Build parallelization issues #1730 2017-05-23 20:36:12 -05:00
zosrothko
3230f91175 Switch to MySql 5.7 on x86_64 arch 2017-05-07 11:56:18 +02:00
Aleksandar Fabijanic
9762dc26bb update CHANGELOG in dev #1698 2017-04-26 19:54:41 -05:00
zosrothko
ade93a30f8 Test the new distribution feature of Travis 2017-04-17 20:14:27 +02:00
Aleksandar Fabijanic
e836f91d90 Log file fix (#1678)
* fix for RotateBySizeStrategy runaway when fstream bad #1676

* fix for LogFile does not recover after write error #1677

* remove unnecesary throw
2017-04-17 12:47:33 -05:00
petko
3bacb6696f Add SQLite Notifier table name getter (#1691)
* Add table name in SQLite Notifier

* Converted spaces to tabs to conform to Poco coding style

* One more spaces to tab change

* Added table compare to Notifier equality operator

* Returning const ref instead of string copy in Notifier getTable
2017-04-17 12:46:57 -05:00
zosrothko
260bbd5252 Comment out unbundled build since it fails on Ubuntu precise
All unbundled build are failing on Ubuntu precise while there are ok on Ubuntu trusty & xenial. Waiting for Travis to change the worker's platform from Ubuntu precise to ubuntu trusty or newer.
2017-04-17 11:00:39 +02:00
zosrothko
ff7ec4cb68 Publish poco_trace & poco_debug macro even in release mode
A user of a prepackaged release versio of poco would have to add the constant POCO_DEBUG_LOG in order to get non empty  poco_trace and poco_debug macros. There is nothing removed or added to poco itself if those macros are published even in a release build. Publishing those macros by default make life easier for the poco's users.
2017-04-17 10:07:06 +02:00
zosrothko
835c7c7e49 Remove space around '=' so that config.make could be used as input source in bach 2017-04-17 09:56:29 +02:00
zosrothko
e052f3861a Refactor order of the tests. 2017-04-16 14:23:10 +02:00
zosrothko
a37622a52b update with Linux & clang bundled & unbundled 2017-04-16 14:05:11 +02:00
zosrothko
106bef7c8b Add display of the c++ compiler version 2017-04-16 13:57:57 +02:00
Francis ANDRE
e8b2ac9b23 Honor CC & CXX environment variables when set 2017-04-16 10:18:04 +02:00
zosrothko
8343a0faef Restore make silent mode 2017-04-15 14:09:41 +02:00