Sébastien Rombauts
1832a35fec
Merge pull request #148 from xforce/master
...
Allows long int for bind when used with name
2017-11-09 20:48:49 +01:00
Alexander Guettler
cebea884c3
Add the fix from a3160dcfc2f80f692f3477a67c202ff87f75fa5a also to the bind by name functions
2017-11-09 11:05:01 -08:00
Sébastien Rombauts
7c4689eb51
Update changelog
2017-11-06 13:03:06 +01:00
Sébastien Rombauts
2286e66d53
Fix a signed/unsigned warning
2017-11-06 13:02:46 +01:00
Sébastien Rombauts
a3160dcfc2
Add Statement binding for long int values to Fix #147
2017-11-06 13:02:23 +01:00
Sébastien Rombauts
eb065bf741
Update version to 2.2.0
2.2.0
2017-09-19 15:17:26 +02:00
Sébastien Rombauts
ab9e11e6c2
Updated changelog
2017-08-31 10:50:45 +02:00
Sébastien Rombauts
014a8e2d70
Merge pull request #143 from Skabunkel/master
...
updated sqlite3 to version 3.20.1
2017-08-31 10:41:58 +02:00
Skabunkel
fcf6db7f5d
updated sqlite3 to version 3.20.1
...
* Updated sqlite3/sqlite3.h and sqlite3/sqlite3.c
* Updated test Statment.invalid since error message has changed.
2017-08-30 20:32:28 +02:00
Sébastien Rombauts
4f7899c959
Rename Statement::mbIsOk to mbHasRow
2017-08-28 17:17:18 +02:00
Sébastien Rombauts
473a307b6d
Merge branch 'try_execute'
2017-08-28 17:17:04 +02:00
Sébastien Rombauts
c14d884ba5
Mutualize code into tryExecuteStep() from PR #142 using SQLITE_MISUSE when statement needs to be reseted
2017-08-28 17:10:38 +02:00
Sébastien Rombauts
94c7897d1b
Cleanup on PR #142 : remove whitespaces and mutualize some code
2017-08-28 16:00:50 +02:00
Henrik Jakobsson Majava
f4947e7a03
Added tests for tryExecuteStep and tryReset
2017-08-28 15:10:56 +02:00
Henrik Jakobsson Majava
8191046ea5
Added tryExecuteStep and tryReset
2017-08-28 11:00:17 +02:00
Sébastien Rombauts
1a46a942b3
Merge pull request #140 from fekir/clean_destructors
...
Remove virtual destructor since there are no virtual methods or subclasses
2017-08-22 22:38:04 +02:00
fekir
ec8253236b
Remove virtual destructor since there are no virtual methods or subclasses
2017-08-22 18:32:40 +02:00
Sébastien Rombauts
5479cc09bf
Merge pull request #139 from fekir/clean_destructors
...
Remove unnecessary noexcept identifier from destructors
2017-08-22 11:07:03 +02:00
fekir
1fd32277c1
Remove unnecessary noexcept identifier from destructors
2017-08-21 22:01:21 +02:00
Sébastien Rombauts
926ebdab8f
Merge pull request #137 from fekir/remove_noexcept
...
Remove noexcept
2017-08-21 11:12:16 +02:00
Sébastien Rombauts
9c15cf7c98
Merge pull request #136 from fekir/fix_stream
...
Ensure that operator<< correctly prints strings with embedded '\0'
2017-08-21 11:10:57 +02:00
Sébastien Rombauts
3c3b23a712
Merge pull request #134 from drivehappy/master
...
Warning cleanup under MSVC and Clang
2017-08-21 11:08:35 +02:00
Sébastien Rombauts
8d0ef9700a
Merge pull request #138 from fekir/enhance_sqlite_exception
...
Enhance sqlite exception with overloaded constructor and default copy constructor and assignment operator
2017-08-21 11:04:22 +02:00
fekir
a826dcacc1
Improve test for constructor consistency
2017-08-19 09:19:55 +02:00
fekir
b2f059e188
Add test for constructor consistency
2017-08-19 09:18:28 +02:00
fekir
67ac88fb1e
Add SQLite::Exception constructor that takes const char* in order to avoid possible std::bad_alloc exception
...
std::runtime_error provides such overload in c++11, therefore it will make no difference when compiling for c++03, but should provide no harm either
2017-08-19 08:59:57 +02:00
fekir
94ebe5ced6
Add default copy constructor to exception class
...
The throw statement may copy the exception, since exception are thrown by value
Having const members disables the assignment operator
2017-08-19 08:53:01 +02:00
fekir
d3a10465b5
Remove unused variable
2017-08-18 20:24:36 +02:00
fekir
db156e6282
Remove noexcept from setBusyTimeout since it may throw (it is also documented)
2017-08-18 20:20:55 +02:00
fekir
697929cfbe
Remove noexcept since std::string constructor may throw
2017-08-18 20:20:29 +02:00
fekir
21ead7c5a4
Ensure that operator<< correctly prints strings with embedded '\0'
2017-08-18 18:24:10 +02:00
drivehappy
d39ff3475e
Fixing tab indentation to use spaces.
2017-08-03 15:36:26 -07:00
drivehappy
6adc4cd5a8
Fixing unused parameter warning under Clang.
2017-08-03 13:34:16 -07:00
drivehappy
218aca1b13
Fixing warning under MSVC.
2017-08-03 13:33:08 -07:00
Sébastien Rombauts
670d710f62
Update version to 2.1.0 and add appropriate changelog
2.1.0
2017-07-18 14:56:18 +02:00
Sébastien Rombauts
1a2c7cbba7
Update sqlite3 from 3.13 to 3.19.3 (2017-06-08)
...
Fix #125 Incompatibility in 3.19.0 using a new CMake variable SQLITE_USE_LEGACY_STRUCT
2017-07-18 14:55:25 +02:00
Sébastien Rombauts
078941cdb1
Fix #130 Statement::getColumns() template function now uses T{} instead of T()
...
Thanks to @cycycyc for providing this improvement
2017-07-17 15:26:02 +02:00
Sébastien Rombauts
f08c15f43b
print CMake version
2017-04-12 17:31:19 +02:00
Sébastien Rombauts
ad3956ab4f
Comment out #111 "linked SQLiteCpp to sqlite3" since it breacks PR #118 "install step"
2017-04-12 17:31:11 +02:00
Sébastien Rombauts
b830e6406f
Merge pull request #111 from Yanpas/cmake_link
...
linked SQLiteCpp to sqlite3
SRombauts: explicitely as PUBLIC
2017-04-12 16:21:50 +02:00
Sébastien Rombauts
efa4917f22
Merge branch 'master' into cmake_link
2017-04-12 16:19:06 +02:00
Sébastien Rombauts
0938ca68a7
Set theme jekyll-theme-slate
2017-04-08 21:38:36 +02:00
Sébastien Rombauts
03b2293805
Update README.md
...
Copyright notice 2017 and PayPal.me link & logo
2017-04-08 14:36:18 +02:00
Sébastien Rombauts
d390342be7
Merge pull request #120 from vbraun/cpplint-py3
...
Make cpplint.py Python-3 compatible
2017-04-06 17:01:09 +02:00
Volker Braun
a537dd6375
Make cpplint.py Python-3 compatible
2017-04-06 16:20:33 +02:00
Sébastien Rombauts
c6dc1c7cdf
Merge pull request #119 from timrae/fix-warnings
...
Fix some warnings and increase safety checking on gcc
2017-03-31 07:27:29 +02:00
Timothy Rae
2123ef0348
Use pedantic warnings
...
From the gcc manual:
Issue all the warnings demanded by strict ISO C and ISO C++; reject all programs that use forbidden extensions, and some other programs that do not follow ISO C and ISO C++. For ISO C, follows the version of the ISO C standard specified by any -std option used.
Note: ISO C++98 doesn't support the "long long" data type, so we disable that warning
-Winit-self can be removed as it's enabled by -Wall
2017-03-31 12:41:21 +09:00
Timothy Rae
400ab71fa3
Fix unused parameter warning
2017-03-31 12:22:48 +09:00
Timothy Rae
b23f2e155f
Use -Wextra flag with gcc
...
From the manual:
This enables some extra warning flags that are not enabled by -Wall. (This option used to be called -W. The older name is still supported, but the newer name is more descriptive.)
-Wclobbered
-Wempty-body
-Wignored-qualifiers
-Wimplicit-fallthrough=3
-Wmissing-field-initializers
-Wmissing-parameter-type (C only)
-Wold-style-declaration (C only)
-Woverride-init
-Wsign-compare (C only)
-Wtype-limits
-Wuninitialized
-Wshift-negative-value (in C++03 and in C99 and newer)
-Wunused-parameter (only with -Wunused or -Wall)
-Wunused-but-set-parameter (only with -Wunused or -Wall)
2017-03-31 12:22:38 +09:00
Timothy Rae
4c339031f0
Remove const from Database::isUnencrypted() return type
...
Compiling with gcc pedantic mode was leading to a warning: "type qualifiers ignored on function return type"
2017-03-31 12:12:46 +09:00