RE: [sqlite] SqLite on Windows

2004-01-03 Thread Allan Edwards
Howdy group, Although our store is a couple days to a week from being live, we have a Sqlite. NET product for windows. You can read about it at http://www.aspire.ws. We are using Sqlite in some of our current and future products. Because of some requests received earlier this year, we decided t

[sqlite] SqLite on Windows

2004-01-03 Thread Erwin Jabor
Hello. I try to get a sqlite setup at WINDOWS with the LCC-32 C compiler to work. I'm busy since a couple of weeks without success. LCC-32 is a compiler that is nearly equal with VC-6.0. So that is not the problem for shure. I have trying several setups described at several websites. Non of then w

Re: [sqlite] Date problem

2004-01-03 Thread Doug Currie
Eugene, > create table test(a int, b datetime); > insert into test values(1,'2004/1/3'); > select * from test where date(b)='2004/1/3' > The SELECT statement returns no record. But this works: sqlite> select * from test where b='2004/1/3'; 1|2004/1/3 The date is not encoded properly in the dat

Re: [sqlite] Re: sqlite_encode_binary problems

2004-01-03 Thread eno
Hi Rob, >> size_t size = load_file->Length(); >> >> char in[size]; >> unsigned long nLoadSize = load_file->Read((void *)in, size); >> unsigned char out[2 +(257*nLoadSize)/254]; >> sqlite_encode_binary((const unsigned char*)in, 257*nLoadSize)/254, >> (unsigned char*)out); > > > This is actually re

Re: [sqlite] Date problem

2004-01-03 Thread Kurt Welgehausen
You won't find /MM/DD in the list of legal time strings. By the way, the developer(s) intend for dates to be stored as floats (in tables). Try select date(2453007.5); - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

[sqlite] Re: sqlite_encode_binary problems

2004-01-03 Thread Rob Laveaux
On 3-jan-04, at 23:29, John Scott <[EMAIL PROTECTED]> wrote: I want to use sqlite_encode_binary to encode zip files into sqlite databse. But somehow I don't get the wanted result of this procedure. Can someone tell me where i made a mistake?? Encoding: wxFFile *load_file = new wxFFile(); load_f

Re: [sqlite] Date problem

2004-01-03 Thread Eugene Lin
Kurt, Thanks for your message. >>date() returns NULL because you're giving it an illegal time string Well, I thought the date (not the time) string I'm giving is correct, e.g. "2004/1/3'. It is in the correct format "/MM/DD". I am not interested in the DATE part, that is why I'm calling "da

Re: [sqlite] Date problem

2004-01-03 Thread Kurt Welgehausen
There seem to be some problems with the date/time functions, but your statements will never work. Your select returns NULL because date() returns NULL. date() returns NULL because you're giving it an illegal time string. Read the docs again, and pay attention to the list of legal time str

Re: [sqlite] Date problem

2004-01-03 Thread Eugene Lin
Hi, With regard to these new date/time functions as pointed out at: http://www.sqlite.org/cvstrac/wiki?p=DateAndTimeFunctions I have one question: I can't seem to be able to use them on actual datetime field in the database. For instance, my test script as below: create table test(a int, b dat