[sqlite] SQLITE_IOERR_SHORT_READ error

2015-03-20 Thread Simon Slavin
On 20 Mar 2015, at 6:12pm, Kumar Suraj wrote: > we get error SQLITE_IOERR_SHORT_READ once in a while. While > > error is Ok for us we were interested to know whether there are retries made > > internally when ever SQLite encounter this kind of error.

[sqlite] Clarification regarding Next opcode !

2015-03-20 Thread Sairam Gaddam
What Next opcode does is advance cursor P1 so that it points to the next key/data pair in its table or index. If there are no more key/value pairs then fall through to the following instruction. But i have a program where i need clarification regarding its operation (I inserted printf statement

[sqlite] Clarification regarding Next opcode !

2015-03-20 Thread Hick Gunter
As is readily apparent the next at line 27 deals with the table "em". Given the constraint "l.fame=em.age" it is blindingly obvious that there is only one matching row from table "em". Therefore it is always correct to exit the innermost loop after only 1 iteration.

[sqlite] Source code for 3.8.7.4

2015-03-20 Thread Saurav Sarkar
Thanks a ton Dan and Smith for sending the link. Best Regards, Saurav On Fri, Mar 20, 2015 at 2:46 PM, R.Smith wrote: > That release was last year I think, try 2014 or 2013. > > > On 2015-03-20 11:11 AM, Saurav Sarkar wrote: > >> Hi All, >> >> i have tried to download amalagamation source code

[sqlite] Source code for 3.8.7.4

2015-03-20 Thread Dan Kennedy
On 03/20/2015 04:11 PM, Saurav Sarkar wrote: > Hi All, > > i have tried to download amalagamation source code for sqlite for verions > 3.8.7.4 > > By changing the url to > http://www.sqlite.org/2015/sqlite-amalgamation-3080704.zip > > But the file could not be found. > > Could download for 3.8.8.2

[sqlite] Source code for 3.8.7.4

2015-03-20 Thread Saurav Sarkar
Hi All, i have tried to download amalagamation source code for sqlite for verions 3.8.7.4 By changing the url to http://www.sqlite.org/2015/sqlite-amalgamation-3080704.zip But the file could not be found. Could download for 3.8.8.2 Can anyone please help ? Thanks and Regards, Saurav On Thu,

[sqlite] insert or increment?

2015-03-20 Thread Felipe Gasper
Hello, I?m looking for logic like this: INSERT data ON CONFLICT oldrow.col1 += oldrow.col2 Does SQLite have anything that would make this simpler than: 1) UPDATE 2) if 0 rows updated, then INSERT Thank you! ?? -FG

[sqlite] insert or increment?

2015-03-20 Thread David King
PGP using GPGMail URL: <http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/attachments/20150320/b6070fbb/attachment.pgp>

[sqlite] Sqlite3 Bug Found

2015-03-20 Thread Carabas, Costin
The bug was found on Linux (Ubuntu) 64bit architecture and the source code was downloaded from https://www.sqlite.org/download.html. The executable https://www.sqlite.org/2015/sqlite-amalgamation-3080803.zip was downloaded and compiled from the host. I also checked and the bug doesn't

[sqlite] Source code for 3.8.7.4

2015-03-20 Thread R.Smith
That release was last year I think, try 2014 or 2013. On 2015-03-20 11:11 AM, Saurav Sarkar wrote: > Hi All, > > i have tried to download amalagamation source code for sqlite for verions > 3.8.7.4 > > By changing the url to > http://www.sqlite.org/2015/sqlite-amalgamation-3080704.zip > > But the

[sqlite] system.data.sqlite.dll and Widows 10

2015-03-20 Thread R.Smith
There were some complaints registered previously with windows about this issue where it looks first in the program root for a DLL and then the GAC. This is actually unwanted behaviour since if you use a 3rd party DLL (let's take the library for Google's Chrome browser as an example) in your

[sqlite] SQLITE_IOERR_SHORT_READ error

2015-03-20 Thread Kumar Suraj
Hi We are using SQLite in our infrastructure and calling following API sqlite3_step ( but we get error SQLITE_IOERR_SHORT_READ once in a while. While error is Ok for us we were interested to know whether there are retries made

[sqlite] What is the right order of the main SQLite functions?

2015-03-20 Thread Bart Smissaert
Thanks, all working beautifully now. RBS On Fri, Mar 20, 2015 at 1:27 AM, Simon Slavin wrote: > > On 19 Mar 2015, at 11:48pm, Bart Smissaert > wrote: > > > Is this all how it should be? > > Apart from the following, nothing I see looks like it will cause > problems. You should be checking

[sqlite] What is the right order of the main SQLite functions?

2015-03-20 Thread Simon Slavin
On 19 Mar 2015, at 11:48pm, Bart Smissaert wrote: > Is this all how it should be? Apart from the following, nothing I see looks like it will cause problems. You should be checking the result codes of all the calls you do to make sure you are getting SQLITE_OK (==0) returned from them and

[sqlite] What is the right order of the main SQLite functions?

2015-03-20 Thread Bart Smissaert
Thanks, that is very useful. Maybe this should be more clearly (and simple) in the documentation somewhere. RBS On Fri, Mar 20, 2015 at 12:23 AM, Igor Tandetnik wrote: > On 3/19/2015 7:48 PM, Bart Smissaert wrote: > >> I know this is basic and should be in the documentation, but it is not >>

[sqlite] how to determine the status of last statement in sqlite3 shell ?

2015-03-20 Thread James K. Lowden
On Wed, 18 Mar 2015 21:15:20 + Simon Slavin wrote: > A transaction is ended when you issue the COMMIT command. A > transaction fails if any command which changes the database in it > fails due to violating the schema. If a transaction fails then all > commands in it are automatically

[sqlite] What is the right order of the main SQLite functions?

2015-03-20 Thread Bart Smissaert
I know this is basic and should be in the documentation, but it is not quite clear to me. Basically I have 3 type of procedures: 1. Getting values from a table. For this I have the following steps: (Open) Prepare Then in a loop: Step ColumnInt, ColumnDouble, ColumnText After the loop:

[sqlite] 55c21521 causes build break on older GCC

2015-03-20 Thread Joe Prostko
Hello, I was trying to do a trunk build of Fossil that has incorporated recent pre-release code via its check-in d1db1e47 < http://fossil-scm.org/index.html/info/d1db1e47a4acdb7b>. The build was done on Haiku via the older GCC 2.95.3 compiler. I can do a build just fine with our GCC 4.8.4