Re: [sqlite] 18 minutes 41 seconds

2020-01-02 Thread Luca Olivetti
). https://xkcd.com/2249/ scnr Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi

Re: [sqlite] Inserting a new record (anywhere) into a table of ordered records that have an integer auto-increment primary key

2016-10-15 Thread Luca Olivetti
7 it never happened. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailma

Re: [sqlite] Inserting a new record (anywhere) into a table of ordered records that have an integer auto-increment primary key

2016-10-15 Thread Luca Olivetti
El 15/10/16 a les 19:49, Jens Alfke ha escrit: On Oct 15, 2016, at 7:42 AM, Luca Olivetti wrote: Instead of an autoincrement you could increment it manually in, say, 1000 increments. Then, when you have to insert something between 1000 and 2000 you just use 1500. Unfortunately this breaks

Re: [sqlite] Inserting a new record (anywhere) into a table of ordered records that have an integer auto-increment primary key

2016-10-15 Thread Luca Olivetti
alled ID) that is auto-increment. Instead of an autoincrement you could increment it manually in, say, 1000 increments. Then, when you have to insert something between 1000 and 2000 you just use 1500. Bye. -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004

[sqlite] A little light reading

2015-11-08 Thread Luca Olivetti
www.wired.com/2015/11/null/> Obligatory xkcd reference https://xkcd.com/327/ SCNR Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007

Re: [sqlite] When to close a db, take 2...

2010-06-22 Thread Luca Olivetti
ds m_db null and will not call > sqlite3_close. Unless the second thread is called between the copy and the null assignment. I think that these concurrent accesses should be protected by a critical section. Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004

Re: [sqlite] SQLJet - pure Java implementation of SQLite

2009-08-13 Thread Luca Olivetti
pascal is alive and kicking and highly portable: http://www.freepascal.org Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007 ___ sqlite-users mailing list sqlite-users@sqlite.org htt

Re: [sqlite] How to build sqlite rpm package

2008-11-11 Thread Luca Olivetti
d package it from scratch. Check your distribution site for instructions on how to build an rpm (e.g, for mandriva it is at http://wiki.mandriva.com/en/Development/Howto/RPM) Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 9

Re: [sqlite] "wrong # of entries in index " occur in MultiThread insert operation

2008-04-18 Thread Luca Olivetti
h "--enable-threadsafe" ? Btw, you shouldn't hijack an existing thread for a new topic, use the "Compose" or "New" button in your mail program, hitting "Reply" then changing the subject will still show your message in the original thread in any well beh

Re: [sqlite] How to recover from database corruption? (and why does it happen?)

2008-04-03 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: > En/na Dennis Cote ha escrit: >> The original corruption may well have been caused by omitting the thread >> safe option on the version of SQLite you were using. > > Pheew, I hope it is really so. A quick follow-up: everything has been wo

Re: [sqlite] corrupt db vacuums clean on 3.2.7 but not 3.5.4 or 3.5.6

2008-03-12 Thread Luca Olivetti
o recover a database. It's a pity, because with 3.3.8 (and, as you say, 3.2.7) it appeared to work. Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007 ___ sqlite-users mailing list sq

Re: [sqlite] Newbie question re using SQLite in basic client/server situation

2008-03-07 Thread Luca Olivetti
En/na Jeff Brown ha escrit: > But I need to be able to use it as a server with at > most 10 clients that occasionally use the system. Hi, I'm a newbie myself, so I didn't use the following, but did you check http://www.sqlite.org/cvstrac/wiki?p=SqliteNetwork ? Bye -- Luca

Re: [sqlite] How to recover from database corruption? (and why does it happen?)

2008-03-06 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: >> I don't believe that there is any reason to expect a vacuum to correct a >> corrupt database. > > Ah, ok, I thought that it did (at least it did with 3.3.8). Side note: it wasn't actually completely corrupted (hard corruption c

Re: [sqlite] How to recover from database corruption? (and why does it happen?)

2008-03-06 Thread Luca Olivetti
En/na Dennis Cote ha escrit: > Luca Olivetti wrote: > >> Well, I posted all the error messages I got back from sqlite, as well as >> the snippet of code I use to execute all my queries, but I can post more >> details if it can be useful (I'd only need to know which

Re: [sqlite] How to recover from database corruption? (and why does it happen?)

2008-03-05 Thread Luca Olivetti
ges I got back from sqlite, as well as the snippet of code I use to execute all my queries, but I can post more details if it can be useful (I'd only need to know which details could be). Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax

Re: [sqlite] How to recover from database corruption? (and why does it happen?)

2008-03-05 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: > En/na Luca Olivetti ha escrit: > >> Hello, >> I'm using sqlite 3.3.8 under linux (mandriva 2007.1). > > [...] > >> 1) is sqlite suitable when you have multiple threads accessing the same >> database? Or should

Re: [sqlite] How to recover from database corruption? (and why does it happen?)

2008-03-03 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: > En/na Luca Olivetti ha escrit: > >> Hello, >> I'm using sqlite 3.3.8 under linux (mandriva 2007.1). > > [...] > >> 1) is sqlite suitable when you have multiple threads accessing the same >> database? Or should

Re: [sqlite] Can I manually Lock a database?

2008-03-02 Thread Luca Olivetti
En/na Jerry Krinock ha escrit: > How can I manually lock the database using the C API? I can't find > any "lock" function. In think you could just execute a "BEGIN EXCLUSIVE" query, then do your thing then execute a "COMMIT" (or a "ROLLBACK&

[sqlite] vacuum doesn't clean all errors with 3.5.6, it did under 3.3.8

2008-03-02 Thread Luca Olivetti
lite> vacuum; sqlite> pragma integrity_check; wrong # of entries in index fifo_referencias wrong # of entries in index sqlite_autoindex_fifo_fis_1 Is this expected? If so, how can I fix these errors? (yes, I know that I could dump and restore, but I need something more automated). Bye -- L

Re: [sqlite] How to recover from database corruption? (and why does it happen?)

2008-02-29 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: > Hello, > I'm using sqlite 3.3.8 under linux (mandriva 2007.1). [...] > 1) is sqlite suitable when you have multiple threads accessing the same > database? Or should I delegate the access in a single thread and > serialize the queries from

[sqlite] How to recover from database corruption? (and why does it happen?)

2008-02-28 Thread Luca Olivetti
SQLITE_MISUSE} begin FSQLiteReturnId:=sqlite3_reset(vm); FLog.error('sqlite3_step: '+query+' '+SqliteReturnString); finished:=true; If FSQLiteReturnId=SQLITE_CORRUPT then begin FLog.Error('intent