Re: [sqlite] Setting a "profile" callback cause empty result

2016-06-13 Thread Richard Hipp
On 6/13/16, Eric Boudaillier wrote: > Using the Tcl interface with the "profile" callback set, "onecolumn" and > "exists" returns empty result. Tnx for the bug report. Fixed by https://www.sqlite.org/src/info/d362ba157f993fc7 > > In the code, in DB_EXISTS/DB_ONECOLUMN branch, Tcl_SetObjResult()

[sqlite] Setting a "profile" callback cause empty result

2016-06-13 Thread Eric Boudaillier
Using the Tcl interface with the "profile" callback set, "onecolumn" and "exists" returns empty result. In the code, in DB_EXISTS/DB_ONECOLUMN branch, Tcl_SetObjResult() is called before dbEvalFinalize(), inlike in the DB_EVAL branch. The profile callback is probably called inside dbEvalFinalize(