Re: [sqlite] Multi layer JSON query

2019-12-20 Thread Jens Alfke
> On Dec 19, 2019, at 7:45 PM, No.1 Perfect <757171...@qq.com> wrote: > > How can I count the amountand numof goods when the customer or > goodsname is different. Querying the contents of arrays is kind of complicated. SQL doesn't understand arrays, so the query has to use a "table-valued

[sqlite] Makefile.msc omits rbu exports

2019-12-20 Thread Keith Medcalf
When the sqlite3.def is made, the rbu exports are not included. That is, this # <> sqlite3.def:libsqlite3.lib echo EXPORTS > sqlite3.def dumpbin /all libsqlite3.lib \ | $(TCLSH_CMD) $(TOP)\tool\replace.tcl include "^\s+1

[sqlite] RBU fails as of checkin f84a1539

2019-12-20 Thread Ralf Junker
As of Fossil checkin f84a1539, the RBU code in the following C example is no longer executed to completion. Instead, an error message is generated and the result database is not correctly written. The code works fine with Fossil checkin 28091a48. It generates no error messages and produces the

Re: [sqlite] Sanitising user input for FTS5 MATCH parameter

2019-12-20 Thread Jose Isaias Cabrera
test user, on Friday, December 20, 2019 10:03 AM, wrote... > > Hello, > > I have a search box on a website that uses FTS5/MATCH. > > MATCH seems to take its own custom language for matching. > > 1. Is it safe to just pass the users query to MATCH ? via the SQLite bind > FFI? > > - This would give

[sqlite] Sanitising user input for FTS5 MATCH parameter

2019-12-20 Thread test user
Hello, I have a search box on a website that uses FTS5/MATCH. MATCH seems to take its own custom language for matching. 1. Is it safe to just pass the users query to MATCH ? via the SQLite bind FFI? - This would give them full access to the FTS5 matching language. 2. If not, how should I be

Re: [sqlite] Sqlite database gets corrupted

2019-12-20 Thread Simon Slavin
On 20 Dec 2019, at 12:11pm, Syed Ahmad wrote: > Any way to recover it. This mailing list strips attachments. When's the last time you could use this file ? Did it have any form of encryption ? Was it usable with your own software ? Could you open it with the SQLite command-line tool ?

[sqlite] Patch for Mac Catalyst

2019-12-20 Thread Paulo Coutinho
Hi, I made a patch to sqlite3 can be compiled for Mac Catalyst. It is reported into my project ezored: https://github.com/ezored/ezored/issues/20 With this i was able to compile everywhere. And here is the working framework: https://www.youtube.com/watch?v=ro2WVX_wHuQ Thanks. --

[sqlite] Sqlite database gets corrupted

2019-12-20 Thread Syed Ahmad
Hi, Operating system: Embedded Linux. Version : 3.14.2 2016-09-12 sqlite3 bad.sqlite "PRAGMA integrity_check" Error: file is encrypted or is not a database I have attached the file. Any way to recover it. Is any there at fixes in latest sqlite version 3.x. which will fix this issue.

Re: [sqlite] Lemon source code?

2019-12-20 Thread Richard Hipp
On 12/20/19, David Given wrote: > Does anyone know if the original source code for the lemon parser still > exists, and if so, where to find it? > > The lemon.c file shipped with sqlite, which the hwaci website points me at, > does not appear to be it --- instead it's an amalgamation of a bunch

[sqlite] Lemon source code?

2019-12-20 Thread David Given
Does anyone know if the original source code for the lemon parser still exists, and if so, where to find it? The lemon.c file shipped with sqlite, which the hwaci website points me at, does not appear to be it --- instead it's an amalgamation of a bunch of other files, including some generated by

Re: [sqlite] Multi layer JSON query

2019-12-20 Thread Robert Hairgrove
On 20.12.19 04:45, No.1 Perfect wrote: I've read the full page instructions of JSON1, But I don't know how to use JSON1 to query multiple layers JSON data. The Data as follows : { id: 1, data: { customer: 1, goods: [ { id: 1, name: "apple", price: 12, num: 10, amount: 120 },

[sqlite] Multi layer JSON query

2019-12-20 Thread No.1 Perfect
My English is poor, please forgive me. The first time I use SQLite database. I've read the full page instructions of JSON1, But I don't know how to use JSON1 to query multiple layers JSON data. The Data as follows : { id: 1, data: { customer: 1, goods: [ { id: 1, name: "apple",