SQLite Forum

The second query return nothing
Login
I solved the problem. I found "static int len" the static variable in callback is thread unsafe, the variable can be modified by other thread. I added one line to calculate the len of char ret, instead of static variable. the problem solved. 

but it increase some workload of strlen for the char ret.