Re: [sqlite] Column names in a UNION

2006-03-25 Thread Rob Lohman
Microsoft SQL seems to use the column names from the first select. So that would be "a, b" in your example. Rob - Original Message - From: <[EMAIL PROTECTED]> To: "Sqlite-users" Sent: Saturday, March 25, 2006 3:45 PM Subject: [sqlite] Column names in a UNION Who can tell me what th

Re: [sqlite] SQLITE_ENABLE_MEMORY_MANAGEMENT: AV when Open / Close DB in different threads

2006-03-21 Thread Rob Lohman
Hi Ralf, If I remember correctly you cannot use a SQLite database handle across threads. Each thread will need to open (and close) the database itself. Cheers, Rob - Original Message - From: "Ralf Junker" <[EMAIL PROTECTED]> To: Sent: Tuesday, March 21, 2006 12:02 PM Subject: [sqlit

Re: [sqlite] SQLITE3.DLL fails to load if address 0x60900000 occupied and DLL recompilation

2006-03-21 Thread Rob Lohman
Hi, According to that ticket it is fixed in the latest download on the website. So there should be no need to recompile yourself unless it is an older version? Cheers, Rob - Original Message - From: "Clinco, Michele" <[EMAIL PROTECTED]> To: Sent: Tuesday, March 21, 2006 9:37 AM Subj

Re: [sqlite] sqlite_get_table performance problems

2006-03-08 Thread Rob Lohman
Hi, I suspect "your network" (solution) is to blame. The client probably needs to (re)connect to your server or (re-) authenticate etc. This can easily be tested by running the application and database on the same system. Is the first query does not take 2 seconds you have your answer. Keep in

Re: [sqlite] Failing Transaction Help.

2006-03-01 Thread Rob Lohman
If I'm not mistaken you still need to close the transaction. Are you doing an "end transaction" even if a statement fails (ie, a rollback is done)? - Original Message - From: "nbiggs" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 01, 2006 10:24 PM Subject: [sqlite] Failing Transaction

Re: [sqlite] How to unsubscribe?

2006-01-13 Thread Rob Lohman
That information was given (in an email) when you subscribed: To remove your address from the list, just send a message to the address in the ``List-Unsubscribe'' header of any list message. If you haven't changed addresses since subscribing, you can also send a message to: <[EMAIL PROTECTED]>

Re: [sqlite] Regarding String Comparision

2005-12-05 Thread Rob Lohman
It seems we are both right :) sqlite> create table test (filename varchar(1000) primary key); sqlite> insert into test (filename) values ('test'); sqlite> select * from test where filename='test'; test sqlite> select * from test where filename='tesT'; sqlite> select * from test where filename lik

Re: [sqlite] Regarding String Comparision

2005-12-05 Thread Rob Lohman
Keep in mind that string should be surrounded by single quotes instead of double quotes: exact match: select * from test where filename = 'file'; partial match: select * from test where filename like '%file%'; Also keep in mind that such a search is CASE SENSITIVE. There are two solutions to

Re: [sqlite] sqllite3.dll

2005-11-23 Thread Rob Lohman
Hi Niels, The sqlite3.dll is not a .NET assembly or a COM component, so you can't add it to your project or regsvr32 it. You add the SQLite.NET wrapper as an assembly to your project. This wrapper will then load sqlite3.dll for you. I don't know this wrapper so I can't tell you where it will loo

Re: [sqlite] Unable to load DLL Help!

2005-11-21 Thread Rob Lohman
How can you be sure? It appears from that ticket that there is something wrong with the default binary for Windows (I've verified the relocation problem myself). I can imagine that the more tight security on win2k3 (sp1) simply doesn't want to load the DLL when it is not 100% "ok"? It sounds prett

Re: [sqlite] uSQLiteServer Source code available

2005-11-14 Thread Rob Lohman
I like your concept and agree with your design choices, so much in fact that I independently implemented a very similar system. In my case I packaged the responses in XML, Difficult isn't it, XML or no XML :-) I had also considered XML, if nothing else it is the 'in thing'. But the other side

Re: [sqlite] sqlite 2.0 database

2005-11-07 Thread Rob Lohman
Isn't it so that sqlite3 can't open certain old sqlite2 database because of a format change? At least I seem to remember something like that. I would try opening it with version 2. Rob - Original Message - From: "Manuel Enache" <[EMAIL PROTECTED]> To: Sent: Monday, November 07, 2005 3

Re: [sqlite] can' t get autoincrement to work

2005-11-05 Thread Rob Lohman
You don't need to insert the primary key at all, so don't insert a NULL. See the test below: D:\SQLite>sqlite3 mltest.db SQLite version 3.2.1 Enter ".help" for instructions sqlite> CREATE TABLE projects(project_id INTEGER PRIMARY KEY, cip_number); sqlite> INSERT INTO projects (cip_number) VALUES

Re: [sqlite] Request for comment: Proposed SQLite API changes

2005-11-04 Thread Rob Lohman
The authorizer is used to protect against SQL injection attaches when the SQL text originates from user input. Typically an application will turn the authorizer on when preparing user-supplied SQL then turn it right back off again so that its own internal SQL can run unfiltered. Example: sql

Re: [sqlite] Request for comment: Proposed SQLite API changes

2005-11-03 Thread Rob Lohman
Another proposal: Suppose that when creating an sqlite3_stmt using sqlite3_prepare, the original SQL text was stored in the sqlite3_stmt. Then when a schema change occurred, the statement was automatically recompiled and rebound. There would no more SQLITE_SCHEMA errors. But sqlite3_stmts woul

Re: [sqlite] Proposed 3.3.0 changes. Was: 5/2==2

2005-11-02 Thread Rob Lohman
A quick test here on MSSQL & Oracle: Microsoft SQL 2000 & SQL 2005 (beta): create table MATHTEST ( CINT int null, CDEC decimal null, CDPREC double precision null, CFLOAT floatnul

Re: [sqlite] SQLite as a Windows kernel tool

2005-10-31 Thread Rob Lohman
edge to fix it himself and no if there are any consequences or not. us all, and won't come off as such an irritating whiner. This is just completely rude and uncalled for. If you don't want to "waste your time" discussing a genuine concern, then why bother replying at al

Re: [sqlite] built-in functrion suggestion: size of blob

2005-10-23 Thread Rob Lohman
I assume the wrapper has wrapped this particular function. I'm currently writing my own wrapper and it has wrapped it as well. This is my definition (in case your wrapper doesn't have it): /// /// Returns the lengh of data in a single column of the current result row of a query /// /// Statem

Re: [sqlite] built-in functrion suggestion: size of blob

2005-10-23 Thread Rob Lohman
Isn't this what you are looking for? http://www.sqlite.org/capi3ref.html#sqlite3_column_bytes " If the result is a BLOB then the sqlite3_column_bytes() routine returns the number of bytes in that BLOB. " Or do you really need it inside an SQL statement? Rob - Original Message - Fro

Re: [sqlite] who is responsible for memory

2005-10-21 Thread Rob Lohman
Sorry, I forgot to add: sqlite3_column_name(16). Currently I let MS .NET free memory from that as well. Thanks, Rob - Original Message - From: "Rob Lohman" <[EMAIL PROTECTED]> To: Sent: Friday, October 21, 2005 7:05 PM Subject: [sqlite] who is responsible for memor

[sqlite] who is responsible for memory

2005-10-21 Thread Rob Lohman
atly appreciated. Thanks! Best, Rob Lohman