[sqlite] Bug causing MSVC to fail to compile Session Extension from the amalgamation

2017-05-11 Thread Zachary Greve
When using MSVC to compile the SQLite library, several errors pop up about differing linkage definitions of several session extension functions. These functions are declared without the SQLITE_API macro, but are implemented with it. MSVC does not like this and fails the compilation. I have tes

Re: [sqlite] SQLite DB on external USB HD - is it safe?

2017-05-11 Thread Simon Slavin
On 11 May 2017, at 4:12pm, Bill Wade wrote: > I'd say that "local file system" versus "remote file system" is really more > of a shorthand for the requirement that low-level operations such as locks > and reads behave the way that sqlite expects them to behave. > > > > In particular, locks on

Re: [sqlite] SQLite DB on external USB HD - is it safe?

2017-05-11 Thread Bill Wade
I'd say that "local file system" versus "remote file system" is really more of a shorthand for the requirement that low-level operations such as locks and reads behave the way that sqlite expects them to behave. In particular, locks on remote file systems are notorious for poor behavior. If I

Re: [sqlite] Version 3.19.0 about to enter testing

2017-05-11 Thread David Raymond
Thank you, I think my issue was that I didn't know HAVING could use a non-aggregate expression. I'll do more reading tomorrow on that and bare columns in aggregate queries. -Original Message- From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On Behalf Of Dan Ken

Re: [sqlite] Version 3.19.0 about to enter testing

2017-05-11 Thread Dan Kennedy
On 05/12/2017 02:47 AM, David Raymond wrote: My brain might just not be working right today. Would you be so kind as to give an example for: "Transfer any terms of the HAVING clause that use only columns mentioned in the GROUP BY clause over to the WHERE clause for faster processing." Say:

Re: [sqlite] Version 3.19.0 about to enter testing

2017-05-11 Thread David Raymond
My brain might just not be working right today. Would you be so kind as to give an example for: "Transfer any terms of the HAVING clause that use only columns mentioned in the GROUP BY clause over to the WHERE clause for faster processing." ? Thanks -Original Message- From: sqlite-us

Re: [sqlite] Proposition: introduce a new SQLITE_READ_TABLE Authorizer Action Code

2017-05-11 Thread Clemens Ladisch
Richard Hipp wrote: > On 5/11/17, Clemens Ladisch wrote: >> Richard Hipp wrote: >>> ** ^When a table is referenced by a [SELECT] but no column values are >>> ** extracted from that table (for example in a query like >>> ** "SELECT count(*) FROM tab") then the [SQLITE_READ] authorizer callback >>>

[sqlite] Version 3.19.0 about to enter testing

2017-05-11 Thread Richard Hipp
SQLite version 3.19.0 will soon enter testing with a target release date of 2017-05-25. If you have any issues or concerns, please bring them up now. Change log: https://sqlite.org/draft/releaselog/3_19_0.html Snapshot: https://sqlite.org/download.html Checklist: https://sqlite.org/chec

Re: [sqlite] Proposition: introduce a new SQLITE_READ_TABLE Authorizer Action Code

2017-05-11 Thread Gwendal Roué
> Le 11 mai 2017 à 14:29, Richard Hipp a écrit : > > On 5/11/17, Gwendal Roué wrote: > >> 1. Existing callbacks that catch SQLITE_READ expect a non-NULL column >> > > Very well. The behavior has been changed so that an SQLITE_READ with > an empty-string column name, instead of a NULL column

Re: [sqlite] Proposition: introduce a new SQLITE_READ_TABLE Authorizer Action Code

2017-05-11 Thread Richard Hipp
On 5/11/17, Gwendal Roué wrote: > 1. Existing callbacks that catch SQLITE_READ expect a non-NULL column > Very well. The behavior has been changed so that an SQLITE_READ with an empty-string column name, instead of a NULL column name, is invoked when a table referenced but not used. Also, the

Re: [sqlite] SQLiteDiskIOException: disk I/O error (code 1034)

2017-05-11 Thread Rowan Worth
AFAIK The sqlite logging function already includes the OS error message for i/o errors, so you'll have it there in the log already. It would be difficult to capture that and plumb it back to the callsite though, since the logging function provides you with zero context as to which connection is res

Re: [sqlite] Proposition: introduce a new SQLITE_READ_TABLE Authorizer Action Code

2017-05-11 Thread Richard Hipp
On 5/11/17, Clemens Ladisch wrote: > Richard Hipp wrote: >> ** ^When a table is referenced by a [SELECT] but no column values are >> ** extracted from that table (for example in a query like >> ** "SELECT count(*) FROM tab") then the [SQLITE_READ] authorizer callback >> ** is invoked once for that

Re: [sqlite] Proposition: introduce a new SQLITE_READ_TABLE Authorizer Action Code

2017-05-11 Thread Clemens Ladisch
Richard Hipp wrote: > ** ^When a table is referenced by a [SELECT] but no column values are > ** extracted from that table (for example in a query like > ** "SELECT count(*) FROM tab") then the [SQLITE_READ] authorizer callback > ** is invoked once for that table with a NULL column name. The docum