Re: [sqlite] Questions about sqlite3_result_text*

2009-10-20 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jean-Christophe Deschamps wrote: > >> You are trying really hard to overthink things :-) > > I simply found version c-1) in a widely spread extension and was > surprised by this way of doing the return, unduly complicated and > inefficient in my po

Re: [sqlite] Questions about sqlite3_result_text*

2009-10-20 Thread Jean-Christophe Deschamps
>You are trying really hard to overthink things :-) I simply found version c-1) in a widely spread extension and was surprised by this way of doing the return, unduly complicated and inefficient in my poor understanding, hence the question. ___ sq

Re: [sqlite] Questions about sqlite3_result_text*

2009-10-20 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jean-Christophe Deschamps wrote: > a) is it allowable for a scalar function to modify (in place) an input > argument No. > b) same question for unmodified arguments: is it possible to avoid > duplication > of an argument if the function determi

[sqlite] Questions about sqlite3_result_text*

2009-10-20 Thread Jean-Christophe Deschamps
Hi, The following details about text/blobs returns from scalar functions are unclear to me and I prefer doing things right. a) is it allowable for a scalar function to modify (in place) an input argument and return a pointer to modified argument with sqlite3_result_text? If yes, what