621 Commits

Author SHA1 Message Date
Erbengi
fe7230a6d5 Implement extraction of Dynamic::Var and Any in MySQL extractor (#1863) (#1872)
* Implement extraction of Dynamic::Var and Any in MySQL extractor (#1863)

* Remove probably unnecessary include <my_global.h> from SQLExecutor
2017-09-04 10:59:13 -05:00
Günter Obiltschnig
f176c46a24 upgrade bundled SQLite to 3.20.1 2017-09-01 20:36:23 +02:00
Hampus Tågerud
7a172f9d2d CMake properly detects PostgreSQL, fixes #1671 (#1672) 2017-08-14 19:52:35 -05:00
Alex Fabijanic
900426e52b fix sqlite close logic 2017-08-13 21:29:11 -05:00
Yasuhiro Horimoto
e144a1ffbc Fix issues #1373 for ODBC (#1837)
* Fix issues #1373 for ODBC

* Fix coding style and typo in `SessionImpl::close()`
2017-08-11 20:50:16 +02:00
Alexander B
453d5248f1 Poco Path and simbol $ (#1800)
* fix : loop on sessionimpl->close if impl is sqlite and sqlite_close return SQLITE_BUSY

* fix : loop on sessionimpl->close if impl is sqlite and sqlite_close return SQLITE_BUSY, try 50 times with 100ms sleeping

* bug : into current implementation od path_unix.cpp I can't use simbol $ like a simbol, not a variable prefix, for example,
I need to use path /home/user/O1$$/folder. I propose to use escape sequence for this, for ex., if I want to use Poco::Glob, I can do
std::set<std::string> files;
std::string path = "/home/user/O1$$/folder"
Poco::replaceInPlace(path, "$", "\\$");
Poco::Glob::glob(path, files);

* fix : loop on sessionimpl->close if impl is sqlite and sqlite_close return SQLITE_BUSY, try 50 times with 100ms sleeping (fix code style)

bug : into current implementation od path_unix.cpp I can't use simbol $ like a simbol, not a variable prefix, for example,
I need to use path /home/user/O1$$/folder. I propose to use escape sequence for this, for ex., if I want to use Poco::Glob, I can do
std::set<std::string> files;
std::string path = "/home/user/O1$$/folder"
Poco::replaceInPlace(path, "$", "\\$");
Poco::Glob::glob(path, files);

add test

* fix : try to finalize stmt if its busy (on close session)

* fix : try to finalize stmt if its busy (on close session)
2017-08-10 10:00:06 +02:00
micheleselea
5fe775dfc3 SQlite 3.19.3 and Socket::select fix (#1825)
* SQlite 3.19.3

changelog
http://www.sqlite.org/releaselog/3_19_3.html

* epoll_event memset fix

with -std=c++14 the sizeof(eventsIn) give as result the number of array elements not the bytes number, so the memset is wrong

* fix for older gcc

on older version of gcc struct epoll_event eventsOut[epollSize] = { 0 }; does not compile
2017-07-25 14:20:19 +02:00
Alex Fabijanic
f193a82f20 fix warning and compile error 2017-07-24 15:36:37 +02:00
Yasuhiro Horimoto
a767d55a81 Fixed integer overflow in sessionimpl.cpp (#1803) (#1820)
* Fix integer overflow in sessionimpl.cpp

* Modify document of setConnectionTimeout

Add discription of exception.
2017-07-20 15:25:22 +02:00
Bernhard Rieder
115edb9605 make RecordSet::reset(stmt) return a reference to itself 2017-07-12 11:10:17 +02:00
Alex Fabijanic
bc27086003 fix 32bit SQLite tests 2017-07-11 10:04:12 +02:00
Alex Fabijanic
6c13f5d14c fix odbc build on linux 2017-07-06 19:50:15 +02:00
Alex Fabijanic
c271e49247 force mysql tcp connection; fix failing tests 2017-07-06 19:11:23 +02:00
Craig Scott
035177e1d2 Add POCO_VERBOSE_MESSAGES option (#1679)
Allows informational logging to be turned off. All find-related messages,
warnings, errors, etc. are still always logged. The option is ON by default
to preserve existing behaviour.
2017-07-06 15:56:39 +02:00
jnytra
f8bacb47b5 Fixed GH #1155: Select from MySQL table with longtext column causes SIGSEGV (#1164) 2017-07-06 00:44:21 +02:00
Stefan Weil
8ccee8928c Fix typos in comments, documentation and strings (#1615)
All of them were found using codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-07-06 00:17:38 +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
Alex Fabijanic
128c5c57eb rename 'separator' to 'frac'; develop: PostgreSQLTest: missing ExecUtil class #1788 2017-07-05 11:55:05 +02:00
Alex Fabijanic
34826e3797 fix RowFilter refcount 2017-07-03 17:32:28 +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
Aleksandar Fabijanic
5d69bae19f Poco::Data::SQLite data types #703 (#1767) 2017-06-27 12:15:24 +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
d866e7444d tests for #542 2017-06-21 14:56:33 +02: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
Guenter Obiltschnig
f453dd145c added Visual Studio 2017 project files 2017-02-20 16:46:44 +01:00
Guenter Obiltschnig
97d8c42a4e fixed file headers 2017-02-18 14:29:15 +01:00
Günter Obiltschnig
af39c8d819 Merge pull request #1594 from mkrivos/develop
update to sqlite 3.17.0
2017-02-15 09:51:12 +01:00
Marian Krivos
c845597d40 update to sqlite 3.17.0 2017-02-15 09:26:42 +01:00
Guenter Obiltschnig
8f4e890e32 fixed GH #1571: ODBC Preparator memory leak 2017-02-11 12:25:10 +01:00
Friedrich Wilckens
d98a0ae1e6 Add tests for std::tuple to Data/MySQL. 2017-01-18 11:28:24 -08:00
Friedrich Wilckens
5a8613eb2a Fixed formatting in DataTest.* 2017-01-17 10:39:49 -08:00
Friedrich Wilckens
bd19e0a0fe Data/TypeHandler: use std::size_t instead of size_t for template parameters. 2017-01-16 18:20:14 -08:00
Friedrich Wilckens
cc09e53b6a Added support for std::tuple to Data/Typehandler.h. 2017-01-16 17:49:25 -08:00
Marian Krivos
9cce6b2dd1 update to sqlite 3.16.2 2017-01-12 20:02:03 +01:00
Marian Krivos
1915e2b749 Update to sqlite 3.16.0 2017-01-03 14:02:09 +01:00
Guenter Obiltschnig
e46e610b84 fixed GH #1532: RecordSet and RowFilter: bad use of reference counter 2016-12-30 10:06:40 +01:00
Guenter Obiltschnig
22e746d1ce fixed GH #1436: ODBC Bug: Unicode text(NVARCHAT) read from DB is truncated to half. 2016-12-07 12:57:19 +01:00
Jan Viktorin
be59c5b8fd 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-11 21:53:26 +01:00
Jan Viktorin
0cac5dbf73 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 17:49:02 +01:00
Guenter Obiltschnig
0662244384 fix typo in test suite 2016-10-14 12:02:32 +02:00
Guenter Obiltschnig
142ad28494 initialize all members in ctor 2016-09-26 19:22:07 +02:00
Guenter Obiltschnig
9bd74daef9 fixed uninitialized members in ctor 2016-09-26 19:21:23 +02:00
Guenter Obiltschnig
1bb795e7ed initialize all members in default ctor 2016-09-26 19:19:27 +02:00
Guenter Obiltschnig
b0026b6a1c style fix 2016-09-26 19:17:21 +02:00