Re: [sqlite] TCL & tester.tcl question

2008-03-28 Thread D. Richard Hipp
On Mar 28, 2008, at 4:35 PM, Noah Hart wrote: > A general question for the TCL experts > > There is no problem, I'm just trying to understand how TCL works. > > In tester.tcl,v 1.79, at line 60, there is the following section: > > # Create a test database > # > catch {db close} > file delete -

Re: [sqlite] TCL & tester.tcl question

2008-03-28 Thread Zbigniew Baniewski
On Fri, Mar 28, 2008 at 01:35:01PM -0700, Noah Hart wrote: I'm not an expert (yet... ;) - but I'm doing some TCL. > sqlite3 db ./test.db > set ::DB [sqlite3_connection_pointer db] > > My question is: Why is the last line not "set ::DB db" It seems, that there's an attempt to assign to global va

[sqlite] TCL & tester.tcl question

2008-03-28 Thread Noah Hart
A general question for the TCL experts There is no problem, I'm just trying to understand how TCL works. In tester.tcl,v 1.79, at line 60, there is the following section: # Create a test database # catch {db close} file delete -force test.db file delete -force test.db-journal sqlite3 db ./