RE: [sqlite] why i can not open the new database i created at AT91ARM9200?

2006-03-13 Thread ryan bel brillo
Hi zhang jie, I don’t think there was a problem on the creation and updating of the database. You see, I log every sql statement execute from database creation and updates, and I didn’t see any sql error or any error in that case. Also, I open the database using command line in linux and it wo

RE: [sqlite] Database created in linux cant be read in windows

2006-03-13 Thread ryan bel brillo
Im using a software ipswitch WS_FTP to transfer the file from linux to windows. Im not sure before if I configured it to binary transfer but I tried it again and make sure to configure it and set it to binary transfer, still im getting the same result. Currently, Im trying to create the datab

[sqlite] why i can not open the new database i created at AT91ARM9200?

2006-03-13 Thread 杰 张
Hi ryan bel brillo, First of all,thank you for your reply. The problem is not a compatibility with database created in linux and windows . I downloaded source code sqlite-2.8.17.tar.gz through your website under windows OS. But I gunziped and cross-compiled it for AT91ARM9200(deve

Re: [sqlite] Sorting a text field as if it were integer/float

2006-03-13 Thread drh
"Randy J. Ray" <[EMAIL PROTECTED]> wrote: > This may be a basic SQL question, but I can't find the answer in the > SQL-related documents on the site, so... > > I have a field in a table that is typed as text, though it is 99% of the time > numerical. (It's used to track issue numbers of magazines,

[sqlite] Re: Re: Re: Multithreaded SQLITE_BUSY not handled?

2006-03-13 Thread Igor Tandetnik
Dave Brown <[EMAIL PROTECTED]> wrote: Yeah if I put BEGIN IMMEDIATE in thread1 as well, then it works, but as you say I don't see why I need to do this. Perhaps the implicit transaction which is created in my 1-line INSERT statement isn't an immediate transaction?? It's probably not, but even i

Re: [sqlite] Sorting a text field as if it were integer/float

2006-03-13 Thread Eric Bohlman
Randy J. Ray wrote: This may be a basic SQL question, but I can't find the answer in the SQL-related documents on the site, so... I have a field in a table that is typed as text, though it is 99% of the time numerical. (It's used to track issue numbers of magazines, which for some esoteric publi

Re: [sqlite] Database created in linux cant be read in windows

2006-03-13 Thread Clay Dowling
ryan bel brillo wrote: > Is there a compatibility problem with database created in linux and > windows? I remember this problem on occurs on sqlite version 2.6.2 or > earlier.. Or is there a problem in the way I create the database? How are you getting the file from Linux to Windows? If you used

[sqlite] Database created in linux cant be read in windows

2006-03-13 Thread ryan bel brillo
Hi all, Im new in this list and with sqlite. Im not sure if this topic have been discussed before. Anyway, I have this problem regarding sqlite. I created a c program that would create a new sqlite database from some sql file then update it every five minutes using sql statement stored in

[sqlite] Sorting a text field as if it were integer/float

2006-03-13 Thread Randy J. Ray
This may be a basic SQL question, but I can't find the answer in the SQL-related documents on the site, so... I have a field in a table that is typed as text, though it is 99% of the time numerical. (It's used to track issue numbers of magazines, which for some esoteric publications may be alphanu

Re: [sqlite] sqlite performance with sizeable tables

2006-03-13 Thread spaminos-sqlite
- Original Message > From: Joe Wilson <[EMAIL PROTECTED]> > The disk read/write reordering optimization only works if the > database file is contiguous on the disk and not fragmented. > --- [EMAIL PROTECTED] wrote: > > Basically, the db file is accessed with seek + read/write operations

Re: [sqlite] Re: Re: Multithreaded SQLITE_BUSY not handled?

2006-03-13 Thread Dave Brown
Yeah if I put BEGIN IMMEDIATE in thread1 as well, then it works, but as you say I don't see why I need to do this. Perhaps the implicit transaction which is created in my 1-line INSERT statement isn't an immediate transaction?? Seems like there should be a flag or pragma or something to force all

[sqlite] Re: Re: Multithreaded SQLITE_BUSY not handled?

2006-03-13 Thread Igor Tandetnik
Dave Brown <[EMAIL PROTECTED]> wrote: Igor - ok I tried this, and now I am getting SQLITE_BUSY returned when I try to sqlite3_exec my "BEGIN IMMEDIATE" statement. So I then put that in a do-while( rc == SQLITE_BUSY) loop, and now my first thread is getting SQLITE_BUSY returned when it tries to e

Re: [sqlite] Re: Multithreaded SQLITE_BUSY not handled?

2006-03-13 Thread Dave Brown
Igor - ok I tried this, and now I am getting SQLITE_BUSY returned when I try to sqlite3_exec my "BEGIN IMMEDIATE" statement. So I then put that in a do-while( rc == SQLITE_BUSY) loop, and now my first thread is getting SQLITE_BUSY returned when it tries to execute the 1-line INSERT statement (with

[sqlite] Re: Multithreaded SQLITE_BUSY not handled?

2006-03-13 Thread Igor Tandetnik
Dave Brown <[EMAIL PROTECTED]> wrote: Hi all - I am seeing a strange problem where I have multiple threads trying to both do writes to the database, and one thread gets back an immediate SQLITE_BUSY even though *both* have set the busy handler to 10 seconds, and the write operation is much much f

[sqlite] Multithreaded SQLITE_BUSY not handled?

2006-03-13 Thread Dave Brown
Hi all - I am seeing a strange problem where I have multiple threads trying to both do writes to the database, and one thread gets back an immediate SQLITE_BUSY even though *both* have set the busy handler to 10 seconds, and the write operation is much much faster than this (on the order of millise

Re: [sqlite] Multithread access to DB

2006-03-13 Thread Jay Sprenkle
On 3/13/06, Rafal Rusin <[EMAIL PROTECTED]> wrote: > > Maybe you want to call this: > > > > " int sqlite3_busy_timeout(sqlite3*, int ms); > > > > This routine sets a busy handler that sleeps for a while when a table > > is locked. The handler will sleep multiple times until at least "ms" > > m

Re: [sqlite] Multithread access to DB

2006-03-13 Thread Deepak Kaul
I had major problems with multithreaded access to a sqlite database file on an NFS mount. While not exactly your scenerio there might be some similarities. I had to come up with a crazy scheme to allow only one thread to access the sqlite database at a time. See below. I came up with a sch

Re: [sqlite] Multithread access to DB

2006-03-13 Thread Rafal Rusin
> Maybe you want to call this: > > " int sqlite3_busy_timeout(sqlite3*, int ms); > > This routine sets a busy handler that sleeps for a while when a table > is locked. The handler will sleep multiple times until at least "ms" > milliseconds of sleeping have been done. After "ms" milliseconds o

[sqlite] Re: Re: it there a way to execute a query generated bySELECT

2006-03-13 Thread Igor Tandetnik
[EMAIL PROTECTED] wrote: BTW, yes, the schema is 'as is' and i have to convert it, but how to converts rows to columns and add to other columns? ;-) I'm not sure I understand this question. Without knowing any details about your problem, I'd suggest something like this. Change tbl from this:

Re: [sqlite] Multithread access to DB

2006-03-13 Thread Jay Sprenkle
On 3/13/06, Rafal Rusin <[EMAIL PROTECTED]> wrote: > Hello, > > I'm having problems with famous multithread bug > "Database is locked". > I tried to work around that with sqlite3_busy_timeout > or busy_handler, but with no success. I had deadlocks. > I was using version 3.3.4 on Debian Linux. > Cou

Re: [sqlite] it there a way to execute a query generated by SELECT

2006-03-13 Thread drh
[EMAIL PROTECTED] wrote: > hi all, > > it there a way to execute a SQL query generated by SELECT ? > for eg. : > select 'insert into plan (personid, curseid, statid) select > tbl.excelid, ' || id || ',status.id from tbl, status where > tbl.' || fldname || ' = status.name ;' from curses; > A plan

[sqlite] Multithread access to DB

2006-03-13 Thread Rafal Rusin
Hello, I'm having problems with famous multithread bug "Database is locked". I tried to work around that with sqlite3_busy_timeout or busy_handler, but with no success. I had deadlocks. I was using version 3.3.4 on Debian Linux. Could You give me some links to discussion on that topic? Maybe there

Re: [sqlite] Re: it there a way to execute a query generated by SELECT

2006-03-13 Thread Jay Sprenkle
On 3/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Igor, > > thank you very much! > > BTW, yes, the schema is 'as is' and i have to convert it, > but how to converts rows to columns and add to other > columns? ;-) You return the result to a string variable in your program and then execute

Re: [sqlite] sqlite performance with sizeable tables

2006-03-13 Thread Christian Smith
On Fri, 10 Mar 2006 [EMAIL PROTECTED] wrote: >- Original Message >> From: Christian Smith <[EMAIL PROTECTED]> > >> But SQLite depends on the OS caching abilities for much of it's >> performance. Removing it is like saying SQLite is rubbish on Intel >> processors after testing on a i486. >

Re: [sqlite] Re: it there a way to execute a query generated by SELECT

2006-03-13 Thread emilia12
Igor, thank you very much! BTW, yes, the schema is 'as is' and i have to convert it, but how to converts rows to columns and add to other columns? ;-) Regards, e. Цитат на писмо от Igor Tandetnik <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > it there a way to execute a SQL query generate

[sqlite] Re: it there a way to execute a query generated by SELECT

2006-03-13 Thread Igor Tandetnik
[EMAIL PROTECTED] wrote: it there a way to execute a SQL query generated by SELECT ? for eg. : select 'insert into plan (personid, curseid, statid) select tbl.excelid, ' || id || ',status.id from tbl, status where tbl.' || fldname || ' = status.name ;' from curses; No, not really. You have a ra

Re: [sqlite] updating SQLite to implement The Third Manifesto

2006-03-13 Thread drh
Darren Duncan <[EMAIL PROTECTED]> wrote: > At 7:05 PM -0500 3/12/06, [EMAIL PROTECTED] wrote: > >Let me amplify this by pointing out that I have zero interest > >in taking SQLite in the direction of The Third Manifesto. Those > >who want to do so are welcomed - encouraged even - to fork the > >tre

[sqlite] it there a way to execute a query generated by SELECT

2006-03-13 Thread emilia12
hi all, it there a way to execute a SQL query generated by SELECT ? for eg. : select 'insert into plan (personid, curseid, statid) select tbl.excelid, ' || id || ',status.id from tbl, status where tbl.' || fldname || ' = status.name ;' from curses; regards emily - Sl

Re: [sqlite] Academic journals for SQLite

2006-03-13 Thread John Newby
OK thank you. John On 13/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > "john.newby" <[EMAIL PROTECTED]> wrote: > > Hi, I sent this request yesterday from my other address but wasn't sure > if > > anyone had received it as my other email address didn't receive it but > both > > address a