gwenn
2e07650a02
Use ?NNN format instead of ?
...
https://sqlite.org/lang_expr.html#parameters
> But because it is easy to miscount the question marks, the use of this parameter format is discouraged. Programmers are encouraged to use one of the symbolic formats below or the ?NNN format above instead.
2022-11-27 09:38:06 +01:00
gwenn
784ef95bb6
Intoduce one_column for tests
2022-11-11 16:20:39 +01:00
gwenn
6d509afe49
Clippy
2022-10-28 19:02:49 +02:00
gwenn
7dab08c4b2
Fix clippy warnings
2022-10-02 11:34:58 +02:00
Thom Chiovoloni
9699b4a210
Fix non-bundled tests against macOS system SQLite
2022-04-03 11:12:38 -07:00
gwenn
68f41d6e9e
clippy::semicolon_if_nothing_returned
2022-01-06 04:56:42 -08:00
Thom Chiovoloni
e92e8a0924
Use a generic ToSql param in pragma functions
2021-08-01 11:12:08 -07:00
gwenn
5730b2f952
Fix clippy warnings
2021-06-25 18:57:25 -07:00
gwenn
afcdc2b43a
Use most concise syntax for params
2021-01-19 21:16:08 +01:00
gwenn
2319165b59
Fix clippy warnings
2021-01-02 10:49:29 +01:00
gwenn
da94f8eba6
Make tests return Result
2020-11-05 22:14:00 +01:00
Thom Chiovoloni
22121772a2
Deprecate NO_PARAMS in favor of passing an empty array
2020-11-03 19:09:19 -08:00
gwenn
a4691db6d0
pragma_update fails with ExecuteReturnedResults
...
Ideally, while executing a batch, we should fail if it contains a SELECT
statement. But currently there is no way to make the distinction between
a SELECT and a PRAGMA which both updates and returns a row.
So we fail only when `extra_check` feature is activated.
2020-08-17 19:30:24 +02:00
gwenn
dd886578d2
Implement our own sqlite3_exec
...
Should fix issue related to unlock notify: #767
Caveat: many CString allocated.
2020-06-26 19:35:14 +02:00
gwenn
f37519ad51
Replace execute_batch usages by execute
...
Because execute_batch does not support unlock_notify
2020-06-25 09:45:49 -07:00
Thom Chiovoloni
c70d148542
Remove most of the code using feature=bundled
as a version check
2020-01-14 08:11:36 -08:00
gwenn
701389605d
Do not assume sqlite3_column_text
is valid UTF-8
...
Fix impact on features
2019-07-24 20:46:53 +02:00
gwenn
f0ae7b6e9b
Do not assume sqlite3_column_text
is valid UTF-8.
...
Fix Statement::value_ref
2019-07-24 20:08:31 +02:00
gwenn
59a44cfae5
Merge remote-tracking branch 'jgallagher/master' into fallible-iterator
2019-03-10 11:12:14 +01:00
gwenn
32881d7a76
Unify callback parameter signature
2019-02-21 21:14:55 +01:00
gwenn
fcaf5b9dd8
Fix typos
2019-02-21 18:55:51 +01:00
gwenn
364e885b89
Fix warning
2019-02-14 20:53:00 +01:00
gwenn
6ce5c9ddcc
Suggest users to use PRAGMA function instead
2019-02-14 20:24:16 +01:00
gwenn
9c00dd01a2
Draft to ease PRAGMA usage ( #273 and #265 )
2019-02-03 09:17:37 +01:00