[sqlite] typeless in sqlitedataset?

2004-06-04 Thread Xuer
i'm using sqlitedataset (http://sqlitedataset.sourceforge.net/cms/) for c++ programming. when i use function get_fType() to retrieve the filed_value datatype, it always is 0,which means string. is there a problem? and how could i tell the 1 is char "1" or integer 49?

Re: [sqlite] Adding and subtracting decimals is not accurate

2004-06-04 Thread Mitchell Vincent
Welcome to the wonderful world of floating point numbers :-) I always store money values as cents (or as integers, what ever your currency might call it) and move the decimal to format for display.. Randall Fox wrote: After reading the FAQ and type information over, I went and tried the following

Re: [sqlite] Adding and subtracting decimals is not accurate

2004-06-04 Thread Gerry Snyder
Randall Fox wrote: After reading the FAQ and type information over, I went and tried the following: CREATE TABLE M (A numeric, B text); INSERT INTO M VALUES (1.2); INSERT INTO M VALUES (1.2); INSERT INTO M VALUES (1.2); . . ; did this about 45 times . . SELECT SUM(A) FROM M; result was 52.8000

[sqlite] Adding and subtracting decimals is not accurate

2004-06-04 Thread Randall Fox
After reading the FAQ and type information over, I went and tried the following: CREATE TABLE M (A numeric, B text); INSERT INTO M VALUES (1.2); INSERT INTO M VALUES (1.2); INSERT INTO M VALUES (1.2); . . ; did this about 45 times . . SELECT SUM(A) FROM M; result was 52.8001 Defining th

Re: [sqlite] palm pilot

2004-06-04 Thread Jalil Vaidya
Mr. Warren was kind to provide me the code for Palm OS port of Sqlite(I incorrectly mentioned "Mr. Wayne" in my last mail; the work has been done by Mr. Warren Taylor). He has generously permitted me to add the code to wiki. Since I cannot add the code to wiki due to its limitations I have uploade

Re: [sqlite] palm pilot

2004-06-04 Thread Warren Taylor
There is a PalmOS port of SQLite available. Mr. Taylor on this list kindly sent me the code of his work on the Palm port. I have not tested it on Palm Vx but I do believe it works(Mr. Wayne can correct me if I am wrong). I am working on Palm OS 6 port of SQLite but haven't been able to get far as m

RE: [sqlite] palm pilot

2004-06-04 Thread Jalil Vaidya
I tried to upload the code to the wiki but wasn't able to do so due to 100K limit of the attachment. Over the weekend I will upload the code to my own site and post the link on this list as well as update the wiki :-) - Jalil --- "Clark, Chris" <[EMAIL PROTECTED]> wrote: > > > > -Original M

Re: [sqlite] Join query help

2004-06-04 Thread Kurt Welgehausen
> select customers.*, ctots.total > from customers, > (select customer_id cid, sum(invoice_amount) total >from invoice_master group by cid) ctots > where customers.customer_id = ctots.cid You're right -- sorry, I wan't paying attention. For 'customers, (subquery) where' substitut

RE: [sqlite] re: academic software licensing (delphi)

2004-06-04 Thread rene
Hi, no, i didn't realize that. both personal and at my payed job we still use delphi5.. this licensing issues makes it for us as independent R&D partner far to expensive to upgrade development tools on a frequent base.. i've been begging for a new delphi for ages now. ironically, one of our par

Re: [sqlite] Join query help

2004-06-04 Thread Mitchell Vincent
Very nice, however that still only gives me the customer records if they have an invoice in the invoice_master table.. A sub-select or outer join or something of the sort is needed but I can't get it to work.. In PostgreSQL I might do : SELECT *,(SELECT sum(total) FROM invoice_master WHERE inv

RE: [sqlite] re: academic software licensing (delphi)

2004-06-04 Thread Shawn Anderson
You do realize that you do not need BDE anymore to just use the TDataSet, right? Borland got rid of that requirement about 2 years ago (Around Delphi 6), if memory serves :) Other than that, I agree, the free edition is a totally acceptable choice. Shawn -Original Message- From: [EMAIL

Re: [sqlite] Join query help

2004-06-04 Thread Kurt Welgehausen
> ...get all customers records, plus the sum of a column in the invoice... The idea is to get customer_id and the sum from the invoice table, then join that with the rest of the customer info. Of course, if you want to do it in one SQL statement, you have to write those steps in reverse order:

Re: [sqlite] Database Locking

2004-06-04 Thread Jay Macaulay
> > In a message dated 6/4/2004 11:53:05 AM Eastern Daylight Time, > [EMAIL PROTECTED] writes: > > I'm using SQLite on a Windows XP system with 1GB of RAM. I'm writing a > server which spawns multiple threads for it's connections. It is > querying and writing to an SQLite database within each th

RE: [sqlite] re: academic software licensing (delphi)

2004-06-04 Thread rene
"you get to use all of the great database functionality that Borland's VCL offer" unless of course you think borland's data-aware components aren't so great.. imho, they are just unnecessary overhead, making things more complex than they should and limit you in usage of features that makes parti

Re: [sqlite] Join query help

2004-06-04 Thread Puneet Kishor
Mitchell Vincent wrote: So I'm sitting here in a pinch and my brain just refuses to work... 2 tables, a customer and an invoice table. What is the proper SQL to get all customers records, plus the sum of a column in the invoice table with a relation on the customer ID, but not all customers might

Re: [sqlite] Database Locking

2004-06-04 Thread Pix
I'm using SQLite on a Windows XP system with 1GB of RAM. I'm writing a server which spawns multiple threads for it's connections. It is querying and writing to an SQLite database within each thread. Whenever a query or insert/update statement is issued, the SQLite database is opened, quer

Re: [sqlite] Database Locking

2004-06-04 Thread WeiChin3
In a message dated 6/4/2004 11:53:05 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: I'm using SQLite on a Windows XP system with 1GB of RAM. I'm writing a server which spawns multiple threads for it's connections. It is querying and writing to an SQLite database within each thread. W

[sqlite] Join query help

2004-06-04 Thread Mitchell Vincent
So I'm sitting here in a pinch and my brain just refuses to work... 2 tables, a customer and an invoice table. What is the proper SQL to get all customers records, plus the sum of a column in the invoice table with a relation on the customer ID, but not all customers might have an invoice record

[sqlite] SQLite::DB Perl Module Released

2004-06-04 Thread Vitor
Folks, I an sharing, through CPAN, one perl module that provides an object oriented wrapper to SQLite databases using DBI and DBD::SQLite modules. http://search.cpan.org/~vxx/SQLite-DB-0.02/lib/SQLite/DB.pm Please feel free to send me feedbacks of it. Regards, Vitor -

Re: [sqlite] palm pilot

2004-06-04 Thread nathanvi
Il giorno Wed, 2 Jun 2004 05:31:21 -0700 (PDT), tu oh prode Jalil Vaidya <[EMAIL PROTECTED]> hai scritto una mail. Il suo oggetto era"Re: [sqlite] palm pilot": > There is a PalmOS port of SQLite available. Mr. Wayne > on this list kindly sent me the code of his work on > the Palm port. I have not

[sqlite] Database Locking

2004-06-04 Thread Richard Boehme
I'm using SQLite on a Windows XP system with 1GB of RAM. I'm writing a server which spawns multiple threads for it's connections. It is querying and writing to an SQLite database within each thread. Whenever a query or insert/update statement is issued, the SQLite database is opened, queried/wr

RE: [sqlite] re: academic software licensing (delphi)

2004-06-04 Thread Shawn Anderson
Yes, but it you right the component around TdataSet you get to use all of the great database functionality that Borland's VCL offers, as well as tons of 3rd party components. Shawn -Original Message- From: Jay Macaulay [mailto:[EMAIL PROTECTED] Sent: Friday, June 04, 2004 11:34 AM To: [

Re: [sqlite] re: academic software licensing (delphi)

2004-06-04 Thread Jay Macaulay
> hi- > > i dont think delphi 7 personal edition will work with sqlite (not 100% > sure though). > i believe i need more than a tdataset that works with sqlite to get it > to work with delphi 7 personal edition. > there is an alternative however. http://ibobjects.com seems to be very > generous wit

Re: [sqlite] re: academic software licensing (delphi)

2004-06-04 Thread Jay Macaulay
> hi- > > i dont think delphi 7 personal edition will work with sqlite (not 100% > sure though). > i believe i need more than a tdataset that works with sqlite to get it > to work with delphi 7 personal edition. > there is an alternative however. http://ibobjects.com seems to be very > generous wit

RE: [sqlite] re: academic software licensing (delphi)

2004-06-04 Thread Fred Williams
Or do it with Klix and get platform portability :-) > -Original Message- > From: Shawn Anderson [mailto:[EMAIL PROTECTED] > Sent: Friday, June 04, 2004 9:22 AM > To: [EMAIL PROTECTED] > Subject: RE: [sqlite] re: academic software licensing (delphi) > > > Question: Why not use the totall

RE: [sqlite] re: academic software licensing (delphi)

2004-06-04 Thread Shawn Anderson
Question: Why not use the totally free version of C++Builder and just create a VCL component for SQLite -- the VCL component can then be used from either C++ Builder or Delphi. Shawn -Original Message- From: Fred Williams [mailto:[EMAIL PROTECTED] Sent: Friday, June 04, 2004 10:18 AM To

RE: [sqlite] re: academic software licensing (delphi)

2004-06-04 Thread Fred Williams
With personal edition of Delphi, you will have to rely on third party software to gain some of the functionality of the more expensive versions. With personal edition you should have all you need to develop an API level interface to SQLite, if you wish to remain totally "free." If you have any pas

[sqlite] re: academic software licensing (delphi)

2004-06-04 Thread jim mcnamara
hi- i dont think delphi 7 personal edition will work with sqlite (not 100% sure though). i believe i need more than a tdataset that works with sqlite to get it to work with delphi 7 personal edition. there is an alternative however. http://ibobjects.com seems to be very generous with licensing of