Sébastien Rombauts
26d5e47fe6
Replace all double-quoted string literals by single quotes
...
Fix #481 23 test fails under FreeBSD 14.1 builtin SQLite library
The SQLITE_DQS compile-time option activates or deactivates the legacy double-quoted string literal misfeature.
Legacy behavior is that double-quoted string literals are allowed anywhere.
2024-08-17 23:16:14 +02:00
Sébastien Rombauts
e933212f69
Fix inequality assertions for real numbers failing on Valgrind (2/2)
...
EXPECT_FLOAT_EQ
2023-08-29 19:23:35 +02:00
Sébastien Rombauts
d4d57b7f5b
Fix inequality assertions for real numbers failing on Valgrind (1/2)
...
EXPECT_DOUBLE_EQ
2023-08-29 19:11:42 +02:00
Sébastien Rombauts
7747c23059
Add comments in the unit tests on how to bind a NULL value
2022-09-30 19:56:30 +02:00
Sébastien Rombauts
bc80914ddf
Merge branch 'master' into windows-migration
2022-07-24 18:41:45 +02:00
Sébastien Rombauts
091726aa65
Fix Statement unit tests still using long
...
long & long long api have been replaced by int32_t and int64_t types
TODO: we need to continue cleanup APIs to remove all long from the codebase before we can release a new version
2022-07-24 16:19:37 +02:00
Jonathan Guzmán
179ef091c6
define preprocesor definition
...
define NON_AMBIGOUS_OVERLOAD to prevent ambiguous overload
and use int instead of long to prevent ambiguous overload errors
2022-04-19 21:58:04 -06:00
Jonathan Guzmán
6b6078ab3f
use int64_t instead of long long(unit tests)
...
using long long may be ambigous for the compiler in the call of bind()
using a fixed type(int64_t) solves this issue
this issue was replicated on both Arch Linux&Windows
with clang 13.0.1/14.0.1
2022-04-19 21:12:46 -06:00
Kacperos155
10d779a349
Fixed #349 ; Column throw when constructed with nullptr
2022-01-26 03:22:17 +01:00
Daniel Schmidt
0c9d4a3f36
Improved name of new function, documentation and tests.
2020-03-26 09:19:27 +01:00
Daniel Schmidt
9dee407ff0
Added unit tests for new function on statements.
2020-03-25 16:20:10 +01:00
Sébastien Rombauts
f70374262d
Improve Statement unit tests coverage (bind by name with a std::string)
2020-01-09 14:00:58 +01:00
Sébastien Rombauts
e6288ee920
Update copyright notice
2020-01-01 08:08:59 +01:00
Sébastien Rombauts
49c1f6c08d
Rename Statement::getExpandedSQL() from #201 and fix #203 #205 memory leak
2019-06-24 22:01:54 +02:00
Sébastien Rombauts
9b00034b06
Merge pull request #201 from os12/master
...
Add Statement::getExtendedSQL()
2019-06-18 20:24:33 +02:00
Oleg Smolsky
7dba62bcf1
Added a minimal test for Statement::getExtendedSQL()
...
- there is nothing conditional here in the wrapper
2019-06-18 09:42:35 -07:00
Sébastien Rombauts
1eda5c751c
Minor cleanup of the codebase, mostly putting braces on their own line in unit tests
2019-06-16 15:48:57 +02:00
Sébastien Rombauts
f1301a4a11
Merge pull request #192 from jrave/bind_parameter_count
...
Add wrapper for bind parameter count
2019-03-04 20:18:49 +01:00
Sébastien Rombauts
78915c8f43
Fix #190 Add Statement move constructor
2019-03-04 18:43:59 +01:00
Johannes Rave
1dab172264
Add wrapper for bind parameter count
2019-03-04 18:43:32 +02:00
Sébastien Rombauts
df7d113a3b
Add test case to try to repro the reported ambiguous bind() int64_t on LP64 Android
2019-03-02 23:43:03 +01:00
Sébastien Rombauts
2cb3cb2fef
Update copyright notice
2019-03-02 15:46:53 +01:00
Sébastien Rombauts
a41629f9ed
Fix #155 Statement::bind truncates long integer to 32 bits on x86_64 Linux
...
Reproduced the problem with a dedicated unit test, then fixed the bug.
Thanks @tszypenbejl for the clear analysis and the fix.
2018-02-23 17:10:53 +01:00
Sébastien Rombauts
d020c5f694
Update copyright notices to 2018
2018-01-24 11:26:38 +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
a3160dcfc2
Add Statement binding for long int values to Fix #147
2017-11-06 13:02:23 +01: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
Henrik Jakobsson Majava
f4947e7a03
Added tests for tryExecuteStep and tryReset
2017-08-28 15:10:56 +02:00
dend
f01a644dc0
Added convenience functions for constructing objects from a row
2017-02-12 22:10:29 -05:00
Sébastien Rombauts
f77b707206
Revert recent switch from uint32_t/int64_t to use int/unsigned/long/long long and fix #93
2016-07-19 10:56:08 +02:00
Bruno Coelho
f022c6af60
Add option to check if column is null by name
2016-07-15 16:15:34 +01:00
Sébastien Rombauts
401b7361ed
Renamed errmsg() and getErrStr() methods to getErrorMsg() and getErrorStr()
2016-07-13 18:37:22 +02:00
Sébastien Rombauts
fd8f50bdd9
Remove last #include <sqlite3.h> from a header : add a few public constants
...
- Move #include <sqlite3.h> from Exception.h to a new corresponding .cpp
- Add SQLite::OPEN_READONLY...
2016-07-13 17:16:41 +02:00
Sébastien Rombauts
67a88298df
Add last missing unit test for Statement: bindNoCopy() by name
2016-07-08 09:05:28 +02:00
Sébastien Rombauts
fe5a615a0d
Add unit tests for Statement bindByName uint32_t and error getters
2016-07-07 23:12:20 +02:00
Sébastien Rombauts
ed052a36bd
Add unit test for bindNoCopy()
2016-07-07 21:53:45 +02:00
Sébastien Rombauts
5056c29f9e
Add unit test for bind() of an uint32_t value
2016-07-07 08:50:49 +02:00
Sébastien Rombauts
646d25ca95
Switch from sqlite3_int64 to int64_t
2016-07-05 11:05:16 +02:00
Sébastien Rombauts
3e56274e69
Add last missing unit-tests to Statement and Transaction
2016-06-30 18:06:51 +02:00
Sébastien Rombauts
c0b2d81db9
Add a unit test for error in exec()
2016-06-30 17:41:23 +02:00
Sébastien Rombauts
249639ca70
Add unit tests for binding parameters by name
2016-06-30 13:19:46 +02:00
Sébastien Rombauts
0c43747065
Add unit tests for statement bindings + removed an assert() for ~Transaction()
2016-06-30 11:35:28 +02:00
Sébastien Rombauts
b913932be2
Add a unit test for transactions
...
+ a few small minor new assert in other tests
2016-06-28 13:17:33 +02:00
Sébastien Rombauts
cda4b89f50
A few more unit tests for backups, statement and database
...
- should get us to 100% on Backup
2016-06-27 17:09:33 +02:00
Sébastien Rombauts
c53d885393
Update copyright notice to 2016
2016-02-10 10:27:47 +01:00
Sébastien Rombauts
09db07ccc7
Updated version to 1.0.0 changelog and copyright date
2015-05-03 23:32:57 +02:00
Sébastien Rombauts
8797f16d12
Add Statement::getColumnName(aIndex)
...
- enable getting names befor gettings rows of result
2015-05-03 23:32:05 +02:00
Sébastien Rombauts
18620457b1
Add some more Unit Tests
2015-05-03 23:29:22 +02:00
Sébastien Rombauts
7fbfc29677
Fix #23 optimized Statement::getColumn() by name
...
- fix Statement::getColumn(apName) provided by #45 but was not working
instead of using #46 that conflicts with current master
- rework it by using a map of columns name as
a cache populated the first time the method is called
- add corresponding Unit Test
2015-05-03 23:28:41 +02:00