Do you have any example of using sqlite3_mprintf() to create error messages
into *pzErrMsg?
Thank you!



Igor Tandetnik wrote:
> 
> On 3/20/2012 11:11 AM, Wei Song wrote:
>> The following code is part of my sqlite extension code I used to
>> persist the ‘locale’ setting for a database. Based on this, I’ve
>> build a sqlite shell that I can set the locale value using pragma
>> statement. The question is:  how to raise errors
> 
> http://www.sqlite.org/cvstrac/wiki?p=LoadableExtensions
> 
> Extension initialization function (usually called 
> sqlite3_extension_init) may provide an error message.
> 
> http://www.sqlite.org/c3ref/result_blob.html
> 
> A custom function may use sqlite3_result_error* to report an error.
> -- 
> Igor Tandetnik
> 
> _______________________________________________
> sqlite-users mailing list
> [email protected]
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-raise-errors-from-sqlite-extension-code--tp33539430p33540616.html
Sent from the SQLite mailing list archive at Nabble.com.

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to