Re: [fossil-users] 'fossil sqlite3' db init issues

2013-09-02 Thread Stephan Beal
On Sun, Sep 1, 2013 at 11:43 PM, David Given d...@cowlark.com wrote: What I'm actually trying to do is to add some functionality which is accessed via a couple of extra SQL functions. What's the preferred way to do this? Most of the custom funcs are registered in db.c:db_open(), but

Re: [fossil-users] 'fossil sqlite3' db init issues

2013-09-01 Thread David Given
On 29/08/13 23:19, David Given wrote: [...] I enclose a patch which I think fixes it; please comment... A little bit more investigation shows that there's actually several ways in which the code initialises the database connection, and they all very slightly, and I'm now a bit confused. It looks

[fossil-users] 'fossil sqlite3' db init issues

2013-08-29 Thread David Given
I've found a minor bug in the way the patched sqlite3 shell handles opening the db. In particular, this code from shell.c: if( data.zDbFilename==0 ){ #ifndef SQLITE_OMIT_MEMORYDB data.zDbFilename = :memory:; #else fprintf(stderr,%s: Error: no database filename specified\n, Argv0);