[sqlite] Behavior When Comparing NULL Values

2016-02-16 Thread Richard Hipp
On 2/16/16, Denis Burke wrote: > > select case when null not in ('a') then 'not in list' else 'is in list' > end; > The expression "null not in ('a')" evaluates to null. So your query is really: "select case when null then 'not-in-list' else 'is-in-list' end;" Since the condition is not true

[sqlite] Behavior When Comparing NULL Values

2016-02-16 Thread Denis Burke
I realize that SQLite will handle NULLs according to: https://sqlite.org/nulls.html As best as I can tell this is a case not listed on that page and gives an answer different than I would expect: select case when null not in ('a') then 'not in list' else 'is in list' end; This gives "is in

[sqlite] Behavior When Comparing NULL Values

2016-02-16 Thread Keith Medcalf
On Tuesday, 16 February, 2016 20:33. Denis Burke asked: > I realize that SQLite will handle NULLs according to: > https://sqlite.org/nulls.html > As best as I can tell this is a case not listed on that page and gives an > answer different than I would expect: What answer do you expect? Why do

[sqlite] Performance comparison between SQLite and SQL Server?

2016-02-16 Thread Paul van Helden
The quality and helpfulness of this mailing list makes me wish for a SQHeavy...

[sqlite] Performance comparison between SQLite and SQL Server?

2016-02-16 Thread Eric Grange
IME when SQLite is applicable (mostly the one writer limit), it usually runs circles around to server DBs, provided: - you have comparable CPU - you have enough cache memory, or free RAM for OS disk caching, to be in a comparable memory scenario - you do not have a virtualisation layer, especially

[sqlite] Bug: writing to a database in shared cache mode doesn't work if same database was opened in readonly mode previously

2016-02-16 Thread Ludger Krämer
Hello, I connect to the same database file twice, first in readonly mode and then in readwrite mode while having set sqlite3_enable_shared_cache(1). Any attempt to change any data using the second database connection results in an "attempt to write a readonly database" error. The same code

[sqlite] applyng schema changes to several databases

2016-02-16 Thread Richard Hipp
On 2/16/16, Roger Binns wrote: > > The way I (and many others) do it is to use the user_version. It is > an integer that starts out as zero, and can be read or written with > pragma user_version. Startup code then looks like this: > > if user_version()==0 { > BEGIN; > CREATE TABLE

[sqlite] Performance comparison between SQLite and SQL Server?

2016-02-16 Thread olivier vidal
obviously it will never be perfect . We already know the benefits of each database , including those of SQLITE . This is not because there is a benchmark that people are not going to look at all the other features. But in equal hardware, it gives a small indication of current performance, as

[sqlite] Correlated subquery throwing an error

2016-02-16 Thread James K. Lowden
On Mon, 15 Feb 2016 14:19:12 -0700 Scott Robison wrote: > Each job will take some amount of time to process. The order doesn't > matter as long as all jobs are eventually processed and you have a > single process running the jobs. Limit 1 is a reasonable way to grab > a single job. Reasonable,

[sqlite] Correlated subquery throwing an error

2016-02-16 Thread James K. Lowden
On Mon, 15 Feb 2016 14:55:34 -0700 "Keith Medcalf" wrote: > Pretty sure you meant: > > select * from (select min(t) as t from T) as T; Yes, thanks. :-) --jkl

[sqlite] Why SQLite does not use a web-based forum?

2016-02-16 Thread Simon Slavin
On 16 Feb 2016, at 11:08am, Klaas Van B. wrote: > N.N. wrote Mon, 15 Feb 2016 09:19:11 +0800: > >> Why SQLite does not utilize a web-based forum for all users discuss >> problems? I think that will be more convenient and can help more people. > > LinkedIn (https://www.linkedin.com) has two:

[sqlite] Performance comparison between SQLite and SQL Server?

2016-02-16 Thread Simon Slavin
On 16 Feb 2016, at 6:30am, olivier vidal wrote: > It would be great if someone could redo these tests with the current versions > of the databases. On what hardware ? Should the SQLite test be on a laptop because SQLite will run on a laptop ? Or should you test both on identical hardware

[sqlite] applyng schema changes to several databases

2016-02-16 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15/02/16 01:01, Luca Ferrari wrote: > While I'm pretty sure a simple sheel script that will execute, > file per file, the alter table (within a transaction) will do the > job I'm wondering if there's a better approach or a more automated > one.

[sqlite] Correlated subquery throwing an error

2016-02-16 Thread Scott Robison
On Tue, Feb 16, 2016 at 11:44 AM, James K. Lowden wrote: > On Mon, 15 Feb 2016 14:19:12 -0700 > Scott Robison wrote: > > > Each job will take some amount of time to process. The order doesn't > > matter as long as all jobs are eventually processed and you have a > > single process running the

[sqlite] Documentation Typo

2016-02-16 Thread Chris Malumphy
On https://www.sqlite.org/datatypes.html there is a typographical error. In the first paragraph of 1.0 Typelessness "A database is suppose to store and retrieve data and it should? the word should be ?supposed"

[sqlite] Why SQLite does not use a web-based forum?

2016-02-16 Thread Klaas Van B.
N.N. wrote Mon, 15 Feb 2016 09:19:11 +0800: >Why SQLite does not utilize a web-based forum for all users discuss >problems? I think that will be more convenient and can help more people. LinkedIn (https://www.linkedin.com) has two: "SQLite" and "SQLite Professional" and I'm pretty sure that on

[sqlite] Performance comparison between SQLite and SQL Server?

2016-02-16 Thread Michael Falconer
Good thread, which absolutely nails the point 'dev decisions for app cases' make a developers world go round. I personally couldn't think of a greater waste of time than a benchmark comparison between client server rdbms's and sqlite. Do what benefits your case most. The above from Jim pretty

[sqlite] Performance comparison between SQLite and SQL Server?

2016-02-16 Thread olivier vidal
It would be great if someone could redo these tests with the current versions of the databases. Jim Callahan a ?crit : > There is a historical and unfair (specially compiled version of SQLite > against default settings of PostgreSQL) benchmark > available on this page, but now that you