Re: [sqlite] documentation on the webserver

2006-10-20 Thread Jay Sprenkle
On 10/19/06, Dennis Cote <[EMAIL PROTECTED]> wrote: I agree that it would probably be worth adding a simply note to the documentation for each API function which states the first version of sqlite that made the function available. Can the web pages be set so specific individuals can wiki them?

Re: [sqlite] bind with select?

2006-10-20 Thread Jay Sprenkle
On 10/16/06, Dave Dyer <[EMAIL PROTECTED]> wrote: I can't find an example, but it seems like there ought to be syntax to use bind to inline selection variables, instead of having to have a callback function. Something like: char *forval,*barval; sqlite_prepare(db,"select ?foo,?bar from

[sqlite] sqlite3sh.jar: 100% pure java port of sqlite 3.3.8+

2006-10-20 Thread Joe Wilson
Java port of the sqlite3 shell courtesy of the brilliant NestedVM UNIX/MIPS emulation environment: http://www.sqlite.org/contrib?orderby=date java -jar sqlite3sh.jar SQLite version 3.3.8 Enter ".help" for instructions sqlite> create table abc(a, b, c); sqlite> insert into abc values (4, 5,

Re: Fwd: [sqlite] problems reading a sqlite db

2006-10-20 Thread [EMAIL PROTECTED]
I'll try that next time. This time i found a cheat way around the problem. I used the sqlite command line program, which had no problems opening the database, and did a dump of the db. I then used the command line program to create a new db, and read in the dump file. Then i just swaped the

Re: [sqlite] problems reading a sqlite db

2006-10-20 Thread Steven Danneman
It's possible that the end-of-line characters were converted when you transferred the DB file from Windows to Linux. This corrupts the binary format and can happen when you transfer a file over FTP in text mode. It's worth a shot to first run the DB file through the dos2unix command then try

[sqlite] problems reading a sqlite db

2006-10-20 Thread [EMAIL PROTECTED]
hi all, I'm trying to read a sqlite database that was created as part of a trac installation. I'm running ubuntu, python 2.3.4 and pysqlite2 I can read the db fine on a window server. When i copy the db over to our linux box though, i'm having some problems. I've written a very simple test

Re: [sqlite] See table structure

2006-10-20 Thread David Crawshaw
Lloyd <[EMAIL PROTECTED]> wrote: Hi List, In SQLite, to see the table structure which command can I use? (as in Oracle's desc ) You can use "select * from sqlite_master;" and there is specific information available by the pragma command: http://sqlite.org/pragma.html d

Re: [sqlite] [OT] Java wrapper binaries for Windows with larget MAX_ARGS

2006-10-20 Thread David Crawshaw
Adriano Ferreira <[EMAIL PROTECTED]> wrote: Does anyone know where I can get binary files for the Christian Werner's Java wrapper (sqlite.jar and sqlite_jni.dll) which allows for a large number of placeholders (something like 256 or so)? If you are just after a JDBC driver with no arbitrary

[sqlite] Re: [OT] Java wrapper binaries for Windows with larget MAX_ARGS

2006-10-20 Thread Adriano Ferreira
Only to make things explicit, I believe the failure to get useful Windows binaries according to the instructions is all mine - some unfortunate combination of the environment I am using and my lack of skills. On 10/20/06, Adriano Ferreira <[EMAIL PROTECTED]> wrote: Does anyone know where I can

[sqlite] [OT] Java wrapper binaries for Windows with larget MAX_ARGS

2006-10-20 Thread Adriano Ferreira
Does anyone know where I can get binary files for the Christian Werner's Java wrapper (sqlite.jar and sqlite_jni.dll) which allows for a large number of placeholders (something like 256 or so)? This is currently configured by a #define at the file sqlite_jni.c and defaults to 32. I followed the

Re: [sqlite] new sqlite-based webserver

2006-10-20 Thread Günter Greschenz
hi, yes, multipart form uploads are possible, and yes, it was a pain :-) but i developed some http-servers before so i know what to do... at the moment, i'm still using (heavy transformed) external http-code (from www.hughes.com.au/products/libhttpd/) which was not able to do this... well,

Re: [sqlite] new sqlite-based webserver

2006-10-20 Thread P Kishor
On 10/20/06, Paul M <[EMAIL PROTECTED]> wrote: On 10/20/06, Günter Greschenz <[EMAIL PROTECTED]> wrote: > > Hi, > > a new version is available (0.5.1.9) on > "http://greschenz.dyndns.org/gas.html;. > this version uses threads for sending files now ! the reply time is much > better now... Very

Re: [sqlite] Re: new sqlite-based webserver

2006-10-20 Thread Paul M
On 10/20/06, A. Pagaltzis <[EMAIL PROTECTED]> wrote: You didn't use the CGI module, did you? If you must know it was POE based and no I did not use the CGI module. I have implemented later versions that where capable of using database servers. SQLite amoung them of course as well as MySQL

Re: [sqlite] Extra functions - New Project?

2006-10-20 Thread Mikey C
Hi Rohit. I sent the source code to DRH with the extra functions. I don't myself have the time now to incorporate the extra functions into SQLite. I don't know if DRH plans to add the extra functions. If he does not and he doesn't mind, I am happy to send the source code to anyone that is

[sqlite] Re: new sqlite-based webserver

2006-10-20 Thread A. Pagaltzis
* Paul M <[EMAIL PROTECTED]> [2006-10-20 17:35]: > Can this server handle multipart form uploads(multiple files > from one form)? I remeber in perl I had to implement the > support for that and regular form submissions manually. I tell > you that was a pain. You didn’t use the CGI module, did

Re: [sqlite] new sqlite-based webserver

2006-10-20 Thread Paul M
On 10/20/06, Günter Greschenz <[EMAIL PROTECTED]> wrote: Hi, a new version is available (0.5.1.9) on "http://greschenz.dyndns.org/gas.html;. this version uses threads for sending files now ! the reply time is much better now... Very cool program. I once wrote something like this in perl,

Re: [sqlite] Inserting uniquely

2006-10-20 Thread Sergio 'OKreZ' Agosti
On 20/ott/06, at 17:06, Lloyd wrote: Hi List, Is there is any easy way to insert a value to a table, if and only if it is not existing ? For example. If I have these values 1,2,3,4,1,2,3,4 when I insert these to a table it must be 1 2 3 4 [By using primary key or unique constraint, it

Re: [sqlite] Inserting uniquely

2006-10-20 Thread dcharno
Lloyd wrote: Hi List, Is there is any easy way to insert a value to a table, if and only if it is not existing ? http://sqlite.org/lang_conflict.html ON CONFLICT clause conflict-clause ::= ON CONFLICT conflict-algorithm conflict-algorithm ::= ROLLBACK | ABORT | FAIL | IGNORE | REPLACE

[sqlite] Inserting uniquely

2006-10-20 Thread Lloyd
Hi List, Is there is any easy way to insert a value to a table, if and only if it is not existing ? For example. If I have these values 1,2,3,4,1,2,3,4 when I insert these to a table it must be 1 2 3 4 [By using primary key or unique constraint, it will work. But I dont want sqlite to

Re: [sqlite] unsigned shorts in bindInt on ARM

2006-10-20 Thread Jim Dodgen
I suspect a little vs. big endian problem. chetana bhargav wrote: Hi, I saw a strnage problem using unsigned shorts, not sure if any one saw that, I was using an unsigned short for binding it to integer, the lint wasn't complaining and everything seem to go ahead fine, when I tested that on

Re: [sqlite] Select with join does not returning same-named columns

2006-10-20 Thread Dennis Cote
other mail wrote: is it safe to assume negligable timing differences between using the sql USING clause vs the sql ON clause in a join? Devorah, I would not expect there to be any significant difference. It should be easy enough to try it both ways and measure the difference. Then you

Re: [sqlite] See table structure

2006-10-20 Thread Jim Dodgen
from the command line in sqlite3: .schema Lloyd wrote: Hi List, In SQLite, to see the table structure which command can I use? (as in Oracle's desc ) Thanks, Lloyd __ Scanned and protected by Email scanner

[sqlite] See table structure

2006-10-20 Thread Lloyd
Hi List, In SQLite, to see the table structure which command can I use? (as in Oracle's desc ) Thanks, Lloyd __ Scanned and protected by Email scanner - To unsubscribe, send

Re: [sqlite] sqlite_corrupt

2006-10-20 Thread drh
"Kalle Klovn" <[EMAIL PROTECTED]> wrote: > Yesterday I received the > SQLITE_CORRUPT error message. This happened on a test system so it is not > that bad, but I am now very nervous about this happening in my production > system. Is this a common problem with sqlite? I get very few reports of

[sqlite] unsigned shorts in bindInt on ARM

2006-10-20 Thread chetana bhargav
Hi, I saw a strnage problem using unsigned shorts, not sure if any one saw that, I was using an unsigned short for binding it to integer, the lint wasn't complaining and everything seem to go ahead fine, when I tested that on windows, all my querys were returning as expected. But when I moved

Re: [sqlite] new sqlite-based webserver

2006-10-20 Thread Martin Jenkins
Günter Greschenz wrote: Hi, a new version is available (0.5.1.9) on "http://greschenz.dyndns.org/gas.html;. I'd just like to confirm that I can still see your site from the UK. ;) Martin - To unsubscribe, send

Re: [sqlite] new sqlite-based webserver

2006-10-20 Thread Günter Greschenz
Hi, a new version is available (0.5.1.9) on "http://greschenz.dyndns.org/gas.html;. this version uses threads for sending files now ! the reply time is much better now... btw: some time ago someone searched a possibility to expose a sqlite database over http: have a look at the

[sqlite] sqlite_corrupt

2006-10-20 Thread Kalle Klovn
I have an application using sqlite v. 3.2.1. This application is storing some extremly important data in this database. Yesterday I received the SQLITE_CORRUPT error message. This happened on a test system so it is not that bad, but I am now very nervous about this happening in my production