Re: [sqlite] Assertion failure in btree.c, line 1166

2005-09-26 Thread Vinj Vinj
I got the same errors where the python application would just crap out. For some time I thought it was a problem with apsw. I migrated to apsw frompysqlite. I searched all over but then did a .dump of my database and recreated it and the error went away. Pretty scary though and I never

Re: [sqlite] Running SQLite in memory-only mode

2005-09-26 Thread John Stanton
With only 20,000 rows it is my intuitive feel that a linear search on a memory resident table (like a mmap'd shared file) would be faster than having a B-Tree setup like Sqlite which would often be doing straight row searches anyway. Joins are not more complex, and perhaps less, than using

Re: [sqlite] Running SQLite in memory-only mode

2005-09-26 Thread Dennis Cote
Radomyselskiy, Mikhail (IT) wrote: We need an engine that runs completely in memory without disk use and that doesn't have to be thread-safe Mikhail, You should be able to use an SQLite memory database. Use the sqlite command shell by starting sqlite3 without a database filename

RE: [sqlite] Running SQLite in memory-only mode

2005-09-26 Thread Radomyselskiy, Mikhail \(IT\)
That's not a bad idea and we thought about it, but... With large number of attributes to be compared (over 100 in some cases), possible numeric comparison (value between 10 and 50), joins to other tables (comparisons might include indirect comparisons like ratings Aaa,

Re: [sqlite] Running SQLite in memory-only mode

2005-09-26 Thread John Stanton
You might do better not to use any database manager and to place your rules in a flat file which you memory map into your program, then use s REGEX regular expression search (or simpler string search) to pop out a list of pointers to the rules. That would be blindingly fast and memory

Re: [sqlite] Data Manipulation ?

2005-09-26 Thread John Stanton
A neat way to do what you want is to set up a table cross-referencing State mnemonics like CA with California, and then use a lookup as suggested by an earlier correspondent. Finally raise a VIEW containing the complex SELECT statement so that you can do your query with the simplest SQL. If

[sqlite] Running SQLite in memory-only mode

2005-09-26 Thread Radomyselskiy, Mikhail \(IT\)
Hi, I would like to use SQLite for processing of rules that look like WHERE clauses (so if i fill a table with attributes and outputs i can run "SELECT WHERE ") Looking at the speed comparison (and i realize its not uptodate but for the lack of better info) it seems a lot of time is

Re: [sqlite] SQL Queries

2005-09-26 Thread Eric Bohlman
Chris Gurtler wrote: I'm pretty new to SQLite, and am just looking for a few pointers on SQL queries, this is an example of a query from a crapy MS Access database that I want to convert to SQLite, but it fails. it says c.group_id does not exist. I'm wondering if anyone has got some tips on

[sqlite] Problems running the Lemon parser to generate parse.c and parse.h

2005-09-26 Thread George Ionescu
Hello dr. Hipp, hello sqlite users, I'm trying to build sqlite from cvs and I'm experiencing problems with generating parse.h and parse.c: I've compiled lemon.exe and it succesfully generated parse.c and parse.h by using "lemon.exe parse.y". The problem I'm facing is that the generated parse.c

[sqlite] Assertion failure in btree.c, line 1166

2005-09-26 Thread Hugh Gibson
Hi, Using PySQLite 2.0.4 I get a crash with the following sequence, starting from no database. If the page_size pragma is removed it works OK. Reproducible under Windows 2K and XP. Running Python 2.4.1. pragma short_column_names=0 pragma full_column_names=0 PRAGMA page_size = 8192 CREATE

[sqlite] Rounding is not so easy

2005-09-26 Thread Edzard Pasma
Hello, I saw that ROUND (0) is not equal to 0. It took some time to understand this. In the first place it is that the outcome of ROUND is always of type text. That is necessarily so, as a decimally rounded number has no exact binary representaion. For instance 1.23 is really 1.22 So

Re: [sqlite] Supported data types

2005-09-26 Thread Lapo Luchini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Firman Wandayandi wrote: > Can anyone describe me, more detail list of which are data types > currently supported by SQLite, on both > http://sqlite.org/datatypes.html & http://sqlite.org/datatype3.html > had gave me some or maybe all (not sure),

[sqlite] bestIndex with Float values

2005-09-26 Thread Sankara Narayanan
Hi, We have sqlite ported onto an Arm7 processor based embedded application with no FloatingPoint support. In our previous versions of sqlite (we were till now using 3.0.8 which does not have AutoIncrement functionality) we were switching OFF the double variables and values through

[sqlite] SQL Queries

2005-09-26 Thread Chris Gurtler
Hi, I'm pretty new to SQLite, and am just looking for a few pointers on SQL queries, this is an example of a query from a crapy MS Access database that I want to convert to SQLite, but it fails. it says c.group_id does not exist. I'm wondering if anyone has got some tips on multiple joins,

[sqlite] SQLite unicode problems

2005-09-26 Thread Alexander J. Kozlovsky
Hello, SQLite developers! Sorry for my bad English. I use SQLite (great program!), and encounter some unicode problems. I think, this problems not with dbms kernel, but with command-line utilite. So far as SQLite supports unicode, I want at least enter russian strings into table rows and

RE: [sqlite] Data Manipulation ?

2005-09-26 Thread Steve O'Hara
Here's a way to go with pure SQL; create table cars (recid,qty,make,model,year,engine,color,state,price); create table states (abbr,name); insert into states values("ca","California"); insert into cars values(1,5,"Ford","Bandit",2005,2000,"Red","ca",5000); select make,(select name from states

[sqlite] Supported data types

2005-09-26 Thread Firman Wandayandi
Can anyone describe me, more detail list of which are data types currently supported by SQLite, on both http://sqlite.org/datatypes.html & http://sqlite.org/datatype3.html had gave me some or maybe all (not sure), because when I create a table with a SMALLINT column, seems SQLite is ok. So I