Re: [sqlite] Sqlite3 crashes when using the where command

2009-03-25 Thread Dan
On Mar 26, 2009, at 5:48 AM, JoeT wrote: > > I am trying to run sqlite3 on Solaris 8. I have managed to compile > it- and > install it. Basic read and write to a database works fine. However > when I > use the where command or the delete command it crashes on me and > says bus > error.

Re: [sqlite] gentle intro to including sqlite in another program

2009-03-25 Thread dcharno
P Kishor wrote: > so, I have read the tutes on the website, but just wanted to confirm... > > I want to take baby steps to including sqlite's capabilities in my > modeling program. Do I just include sqlite3.h and compile my program > and magic will happen, or do I need to do something else? > > U

Re: [sqlite] Documentation on SQLite indirectBLOB?

2009-03-25 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 MBR wrote: > The Open Source project BitPim uses SQLite. I wrote that code. The rationale is at http://bitpim.svn.sourceforge.net/viewvc/bitpim/trunk/bitpim/dev-doc/database.html > In the output > I found numerous references to columns of type indi

Re: [sqlite] gentle intro to including sqlite in another program

2009-03-25 Thread P Kishor
On Wed, Mar 25, 2009 at 7:58 PM, Dennis Cote wrote: > P Kishor wrote: >> >> so, I have read the tutes on the website, but just wanted to confirm... >> >> I want to take baby steps to including sqlite's capabilities in my >> modeling program. Do I just include sqlite3.h and compile my program >> an

Re: [sqlite] gentle intro to including sqlite in another program

2009-03-25 Thread Dennis Cote
P Kishor wrote: > so, I have read the tutes on the website, but just wanted to confirm... > > I want to take baby steps to including sqlite's capabilities in my > modeling program. Do I just include sqlite3.h and compile my program > and magic will happen, or do I need to do something else? > T

Re: [sqlite] Step Query

2009-03-25 Thread Dennis Cote
Kees Nuyt wrote: > > This seems a very nice addition to the > http://www.sqlite.org/cvstrac/wiki?p=SampleCode > we already have. > > I feel tempted to put it in the wiki > http://www.sqlite.org/cvstrac/wiki > under the 'Hints For Using SQLite More Effectively' heading, > as http://www.sqlite.org/

Re: [sqlite] Sqlite3 crashes when using the where command

2009-03-25 Thread P Kishor
On Wed, Mar 25, 2009 at 6:48 PM, John Machin wrote: > On 26/03/2009 9:48 AM, JoeT wrote: >> I am trying to run sqlite3 on Solaris 8.  I have managed to compile it- and >> install it.  Basic read and write to a database works fine.  However when I >> use the where command or the delete command it c

Re: [sqlite] Documentation on SQLite indirectBLOB?

2009-03-25 Thread MBR
I just read through http://www.sqlite.org/datatype3.html, and it's now starting to make sense to me. Wow! My mental model of what's going on under the covers just underwent a major readjustment. Thanks for pointing me at that page. Mark Griggs, Donald wrote: > Hi Mark, > > There's a go

Re: [sqlite] Sqlite3 crashes when using the where command

2009-03-25 Thread John Machin
On 26/03/2009 9:48 AM, JoeT wrote: > I am trying to run sqlite3 on Solaris 8. I have managed to compile it- and > install it. Basic read and write to a database works fine. However when I > use the where command or the delete command it crashes on me and says bus > error. It then does a core du

[sqlite] Sqlite3 crashes when using the where command

2009-03-25 Thread JoeT
I am trying to run sqlite3 on Solaris 8. I have managed to compile it- and install it. Basic read and write to a database works fine. However when I use the where command or the delete command it crashes on me and says bus error. It then does a core dump. Here is my configure line: ./configure

Re: [sqlite] Documentation on SQLite indirectBLOB?

2009-03-25 Thread Griggs, Donald
Hi Mark, There's a good reason for your difficulty -- Sqlite uses dynamic typing: http://www.sqlite.org/datatype3.html As far as I know, the term "IndirectBlob" is not defined within sqlite and is likely a term from the BitPim developers. Sqlite allows one to use most anything as a type -- "

[sqlite] Documentation on SQLite indirectBLOB?

2009-03-25 Thread MBR
The Open Source project BitPim uses SQLite. I'm trying to examine the database BitPim creates. At http://www.sqlite.org/download.html I found sqlite-3_6_11.zip, which is a pre-compiled Windows command-line SQL interface. I ran: sqlite3 bitpim.db then typed: .dump and saved the out

[sqlite] sql select of varchar text with special chars

2009-03-25 Thread anjela patnaik
Hello all,   I've a table in oracle that contains fields of type varchar2. In these fields are TCL scripts that contain backslash chars and brackets.   Now, I've generated an SQL file from the Oracle table data that contains SQL insert statements. I then use sqlite .read to read in the entire db.

Re: [sqlite] Replacement for COPY

2009-03-25 Thread Griggs, Donald
-Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of BOB_GOREN Sent: Tuesday, March 24, 2009 10:49 AM To: sqlite-users@sqlite.org Subject: [sqlite] Replacement for COPY Sqlite 2.8.13 supported statements like: COPY a

Re: [sqlite] Insert performance in 3.6.11 vs. 3.5.5

2009-03-25 Thread Kees Nuyt
On Wed, 25 Mar 2009 15:24:47 +0100, Günter Obiltschnig wrote: >Hi there, > >I have just upgraded SQLite in our application from 3.5.5 to 3.6.11 >(we are using the amalgamation), and I have noticed a sharp drop in >insert performance to more than half the speed that we had with 3.5.5. >We ar

Re: [sqlite] Strict affinity again

2009-03-25 Thread Kees Nuyt
On Wed, 25 Mar 2009 13:06:24 -0400, "Wilson, Ron P" wrote: >Cool! I didn't think of doing that. >I presume this would incur a performance hit >on insert/update to check the constraint Not much. The column data is _dynamically_ typed, so SQLite will determine the type of each value offered

Re: [sqlite] Step Query

2009-03-25 Thread Kees Nuyt
Hi Dennis, On Tue, 24 Mar 2009 18:23:23 -0600, Dennis Cote wrote: >vinod1 wrote: >> I am new to sqlite and C. >> >> I have not been able to write a code which would read row by row using >> sqlite3_step. >> >> Could anybody guide me please. >> >Hi, > >This code is equivalent to the very old ca

[sqlite] Compilation error enabling ICU and FTS3, Sqlite 3.6.11, Ubuntu Hardy libicu-dev

2009-03-25 Thread aditya siram
Hi all, I am trying to compile Sqlite with full text search and icu support. I installed libicu-dev from the Ubuntu Hardy repos. I downloaded the amalgamation package [1] and added the icu and fts option to the sqlite3.c file [2]. I now get the following compilation error: gcc -DSQLITE_THREADSAFE=1

Re: [sqlite] Strict affinity again

2009-03-25 Thread Wilson, Ron P
Cool! I didn't think of doing that. I presume this would incur a performance hit on insert/update to check the constraint and sqlite3_prepare* would return SQLITE_CONSTRAINT if the check failed. Right? RW Ron Wilson, S/W Systems Engineer III, Tyco Electronics, 434.455.6453 If you wa

[sqlite] Replacement for COPY

2009-03-25 Thread BOB_GOREN
Sqlite 2.8.13 supported statements like: COPY ar FROM xxx.odb USING DELIMITERS | What is the equivalent in sqlite 3.6.11? COPY seems to no longer be supported - the same statement that works on 2.8 now generates a syntax error and COPY and DELIMITERS are not in the list of keywor

[sqlite] gentle intro to including sqlite in another program

2009-03-25 Thread P Kishor
so, I have read the tutes on the website, but just wanted to confirm... I want to take baby steps to including sqlite's capabilities in my modeling program. Do I just include sqlite3.h and compile my program and magic will happen, or do I need to do something else? Using Xcode. The model itself h

[sqlite] Insert performance in 3.6.11 vs. 3.5.5

2009-03-25 Thread Günter Obiltschnig
Hi there, I have just upgraded SQLite in our application from 3.5.5 to 3.6.11 (we are using the amalgamation), and I have noticed a sharp drop in insert performance to more than half the speed that we had with 3.5.5. We are using SQLite in an embedded Linux device, and the database files a

Re: [sqlite] pragma quick_check, how do I use it in C?

2009-03-25 Thread D. Richard Hipp
On Mar 25, 2009, at 9:15 AM, Jules Colding wrote: > > BTW: when was integrity_check added? > Version 2.3.0. The original name was "sanity_check". The name was changed to "integrity_check" for 2.4.0. D. Richard Hipp d...@hwaci.com ___ sqlite-user

Re: [sqlite] Strict affinity again

2009-03-25 Thread Thomas Briggs
I'd be willing to bet that amongst experienced SQLite users, you're in the minority. More importantly, I don't think Dr. Hipp agrees with you, so the discussion is very likely moot. :) -T On Wed, Mar 25, 2009 at 9:02 AM, wrote: > Hi everyone, > > I'm new to sqlite and this mailing lis

Re: [sqlite] pragma quick_check, how do I use it in C?

2009-03-25 Thread Jules Colding
On 25/03/2009, at 14.04, D. Richard Hipp wrote: > > On Mar 25, 2009, at 8:44 AM, Jules Colding wrote: > >> Hi, >> >> I can't get the quick_check instruction to work... I'm >> using SQlite3 3.4.0. > > quick_check was added in version 3.5.5. BTW: when was integrity_check added? Thanks, jules

Re: [sqlite] pragma quick_check, how do I use it in C?

2009-03-25 Thread Jules Colding
On 25/03/2009, at 14.04, D. Richard Hipp wrote: > > On Mar 25, 2009, at 8:44 AM, Jules Colding wrote: > >> Hi, >> >> I can't get the quick_check instruction to work... I'm >> using SQlite3 3.4.0. > > quick_check was added in version 3.5.5. OK, that was easy :-( Thanks, jules __

Re: [sqlite] Strict affinity again

2009-03-25 Thread D. Richard Hipp
On Mar 25, 2009, at 9:02 AM, sqlite.20.tomca...@spamgourmet.com wrote: > Hi everyone, > > I'm new to sqlite and this mailing list and hope to get some help > here. I've used SQLite for some projects now and I must say, that it > is the fastes database I ever used. Great work! > > But there is one

Re: [sqlite] pragma quick_check, how do I use it in C?

2009-03-25 Thread D. Richard Hipp
On Mar 25, 2009, at 8:44 AM, Jules Colding wrote: > Hi, > > I can't get the quick_check instruction to work... I'm > using SQlite3 3.4.0. quick_check was added in version 3.5.5. D. Richard Hipp d...@hwaci.com ___ sqlite-users mailing list sqlite-

[sqlite] Strict affinity again

2009-03-25 Thread sqlite . 20 . tomcat78
Hi everyone, I'm new to sqlite and this mailing list and hope to get some help here. I've used SQLite for some projects now and I must say, that it is the fastes database I ever used. Great work! But there is one thing, that I really dislike, because I get errors sometimes with this and that is t

[sqlite] pragma quick_check, how do I use it in C?

2009-03-25 Thread Jules Colding
Hi, I can't get the quick_check instruction to work but I'm sure that I must be doing something really stupid. It seems like my callback function isn't invoked. I have this (just for testing) struct which should be initialised properly when the callback is invoked, but the values are alwa

Re: [sqlite] speeding up row by row lookup in a large db

2009-03-25 Thread Alexey Pechnikov
Hello! On Saturday 21 March 2009 17:31:45 P Kishor wrote: > My intent is to simply retrieve a BLOB and > deserialize it... it would possibly be quicker than 33 ms per > retrieval. Well, I haven't yet completed this test because each BLOB > is taking about 430 KB. At 1 million rows, that is going t

Re: [sqlite] Accent Insensitive search

2009-03-25 Thread Alexey Pechnikov
Hello! On Tuesday 24 March 2009 20:19:00 aditya siram wrote: > Hi all, > Is there a way to do an accent/diacritic insensitive search in sqlite? For > example I want to a query to find " `a blanc " with the search term "a > blanc". Yes. http://ioannis.mpsounds.net/blog/2007/12/19/sqlite-native-un