241 Commits

Author SHA1 Message Date
Günter Obiltschnig
f176c46a24 upgrade bundled SQLite to 3.20.1 2017-09-01 20:36:23 +02:00
Alex Fabijanic
900426e52b fix sqlite close logic 2017-08-13 21:29:11 -05: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
Alex Fabijanic
bc27086003 fix 32bit SQLite tests 2017-07-11 10:04:12 +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
Aleksandar Fabijanic
5d69bae19f Poco::Data::SQLite data types #703 (#1767) 2017-06-27 12:15:24 +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
Marian Krivos
c845597d40 update to sqlite 3.17.0 2017-02-15 09:26:42 +01: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
9bd74daef9 fixed uninitialized members in ctor 2016-09-26 19:21:23 +02:00
Guenter Obiltschnig
fd9ca0a9b6 style fixes 2016-09-01 11:51:16 +02:00
Dan Hosseinzadeh
60ecf597c4 Add API to allow SQLite types to be added at runtime
- new types can be added via Poco::Data::SQLite::Utility::addColumnType()

issue-1375
2016-09-01 00:46:53 -04:00
Dan Hosseinzadeh
cb25a7f4a9 Assume BLOB for unknown sqltypes rather than throwing an exception
- Affects only the SQLite implementation

issue-1375

Signed-off-by: Dan Hosseinzadeh <dan.zadeh@pathcore.ca>
2016-08-31 15:54:05 -04:00
Guenter Obiltschnig
aee7583d16 updated sqlite to 3.14.1 2016-08-27 08:47:08 +02:00
Marian Krivos
bae482264b Update to sqlite 3.13.0 2016-06-02 07:44:52 +02:00
Guenter Obiltschnig
664be2c791 #1221: upgrade bundled sqlite to 3.12.2 2016-04-21 10:09:21 +02:00
Guenter Obiltschnig
8268ebe179 upgraded bundled SQLite to 3.12.1 2016-04-11 10:49:11 +02:00
FrancisANDRE
b4e2757517 Merge remote-tracking branch 'pocoproject/develop' into AppVeyorComplete 2016-03-31 23:59:07 +02:00
mkrivos
53f8ef1736 Bump to sqlite 3.12.0 2016-03-31 09:51:17 +02:00
FrancisANDRE
f85486987c Remove reference to CppUnit.lib
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-03-30 11:07:29 +02:00
FrancisANDRE
f7f3d1f2ca Remove reference to CppUnit.lib
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-03-30 09:13:55 +02:00
Guenter Obiltschnig
9911a56da7 removed binaries 2016-03-16 23:18:07 +01:00
Marian Krivoš
66a815ec6b Merge pull request #28 from pocoproject/develop
Sync 14.3.2016
2016-03-14 14:34:08 +01:00
mkrivos
5faec708cd bump to sqlite 3.11.1 2016-03-14 14:09:45 +01:00
Alex Fabijanic
2a80322ecb merge dev and resolve conflicts 2016-03-11 20:57:28 -08:00
Mathäus Mendel
8895045fb5 Made all testsuite link with pthreads on Unix systems
This fixes the linker errors due to missing pthreads library on AIX.
2016-03-11 10:30:15 -03:00
Alex Fabijanic
3eb023132b Merge branch 'develop' into pr/1113
Conflicts:
	Foundation/testsuite/TestSuite_vs120.vcxproj
2016-03-07 21:38:26 -08:00
Günter Obiltschnig
fd4dcce4b8 Merge pull request #1134 from agalanin/sqlite-named-bind
Data::SQLite: added support for named bind parameters
2016-03-05 15:02:21 +01:00
Alex Fabijanic
32f3f4a146 merge Data changes (ODBC Sybase, PostgreSQL etc) 2016-02-28 11:06:08 -06:00
Guenter Obiltschnig
266ea3117d fixed GH #1137: Missing 'longint' type in SQLite 2016-02-27 16:31:25 +01:00
Marian Krivos
a75207b2e1 bump to sqlite 3.8.2 2016-02-07 11:33:08 +01:00
Scott Talbert
48111c3809 Guard SQLITE_BUSY_SNAPSHOT which is not available in older SQLite releases
When building POCO unbundled with older versions of SQLite (such as on RHEL7)
SQLITE_BUSY_SNAPSHOT is not defined, so #ifdef guard it.
2016-02-06 20:36:05 -05:00
Alexander Galanin
5608e84af4 Data::SQLite: added support for named bind parameters 2016-01-24 12:53:57 +03:00
FrancisANDRE
ce797f7700 Make CppUnit a component of Poco
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-01-08 00:17:13 +01:00
FrancisANDRE
f56ee9c0ac Restore erased return.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-18 19:56:21 +01:00
FrancisANDRE
d3d11e25d9 Restore previous version.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-18 12:34:16 +01:00
FrancisANDRE
75f0819737 IncrementVacuum test commented out since it fails on Travis.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-18 11:41:23 +01:00
FrancisANDRE
cf33959a49 Run IncrementVacuum only if sqlite3 version >= 3.9.0
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-18 09:27:45 +01:00
FrancisANDRE
629d2f12ba When we call statement execution for "PRAGMA incremental_vacuum(1024);"
it fails with null std iterator exception. It happens because variable
"extracts" is empty and construction "*extracts.begin()" is invalid.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-17 21:12:23 +01:00
Aleksandar Fabijanic
2b52b26b92 Merge pull request #1014 from mkrivos/develop
Sqlite 3.9.2
2015-11-05 06:49:48 -06:00
Marian Krivos
41f7870fec bump to sqlite 3.9.2 2015-11-04 18:19:11 +01:00
Aleksandar Fabijanic
64ed9bacf0 Merge pull request #922 from dimanikulin/develop
fixed sql lite statement for empty extracts
2015-10-21 10:04:57 -05:00
dmitriy.n
4e6ec71c18 deleted commented code 2015-10-20 10:18:59 +03:00