Thanks Andy > -----Original Message----- > From: Andrew McDermott [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 07, 2007 7:47 AM > To: sqlite-users@sqlite.org > Subject: Re: [sqlite] How should virtual table module return > its own error messages? > > > Hi, > > > Greetings, > > > > I followed one of the wiki notes on how a virtual table > module method > > such as xUpdate should set error message for consumption > upstream. A > > code snippet is: > > ... > > sqlite3_free(aVTab->zErrMsg); > > aVTab->zErrMsg = sqlite3_mprintf( "No such FOO: %s", foo ); > > ... > > > > where aVTab points to sqlite3_vtab. > > > > But my message gets ignored and replaced with stock error message > > associated with the return code such as: > > > > "SQL logic error or missing database" > > > > Did I follow an obsolete note? Is it possible to do what I > want? Is > > there a special return code I should return in such cases > rather than > > SQLITE_ERROR? > > See: http://www.sqlite.org/cvstrac/tktview?tn=2215 > > It would be great if this could be fixed. > > Thanks, > Andy. > > > -------------------------------------------------------------- > --------------- > To unsubscribe, send email to [EMAIL PROTECTED] > -------------------------------------------------------------- > --------------- > >
----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------