Re: [sqlite] UPDATE database using parameters

2017-07-20 Thread nomad
On Fri Jul 21, 2017 at 06:33:55AM +, Edmondo Borasio wrote: > I am updating a record of a SQLite database as follows: > > $db->exec('UPDATE Movies SET name = "new movie" WHERE ID="4"'); > > but instead of using name and ID I want to use some variables, $NewItemName > and $hId. > > Entering t

[sqlite] UPDATE database using parameters

2017-07-20 Thread Edmondo Borasio
I am updating a record of a SQLite database as follows: $db->exec('UPDATE Movies SET name = "new movie" WHERE ID="4"'); but instead of using name and ID I want to use some variables, $NewItemName and $hId. Entering the variables as they are won't work. Neither using escape characters like \"$Db

Re: [sqlite] A Descending Auto Increment Key

2017-07-20 Thread Don V Nielsen
On the heel of this is a grammatical error: "declared type "INTEGER" includes an "PRIMARY KEY DESC" clause". It should read "includes a "primary...". On Wed, Jul 19, 2017 at 11:03 PM, Keith Medcalf wrote: > > AUTOINCREMENT can only be used with INTEGER PRIMAY KEY columns in a rowid > table defin

Re: [sqlite] Possible inaccuracy in "Isolation In SQLite" paper

2017-07-20 Thread Olivier Mascia
> Le 20 juil. 2017 à 10:23, Olivier Mascia a écrit : > >> Le 20 juil. 2017 à 07:34, Rowan Worth a écrit : >> >> IMMEDIATE would take a RESERVED lock which is clearly not desired in this >> case -- the reader only wants a SHARED lock so as to minimise contention >> with the writer. > > This dis

Re: [sqlite] Possible inaccuracy in "Isolation In SQLite" paper

2017-07-20 Thread Gwendal Roué
> Le 20 juil. 2017 à 08:45, Clemens Ladisch a écrit : > > Rowan Worth wrote: >> On 18 July 2017 at 21:43, David Raymond wrote: >>> You can run "begin deferred transaction" then walk away for 3 months >>> without upsetting anything. If you need the precise timing then why not >>> just use "begin

Re: [sqlite] Possible inaccuracy in "Isolation In SQLite" paper

2017-07-20 Thread Olivier Mascia
> Le 20 juil. 2017 à 07:34, Rowan Worth a écrit : > > IMMEDIATE would take a RESERVED lock which is clearly not desired in this > case -- the reader only wants a SHARED lock so as to minimise contention > with the writer. This discussion revolved around WAL mode. BEGIN IMMEDIATE by a reader wil