Hello,

I had some  difficulties using sqlite3_create_function in that example : 
https://gist.github.com/kdridi/621a12f9a7d6ac12309a
Using sqlite v3.7.17 and -std=c++11

After looking around, i finally understood that the sixth, seventh and eighth 
parameters, xFunc, xStep and xFinal must be
- xFunc, NULL, NULL
- NULL, xStep, xFinal
- NULL, NULL, NULL

However, my example returns an SQLITE_MISUSE code and according to the 
documentation located at http://www.sqlite.org/c3ref/create_function.html i 
thought that i had an encoding error with the second parameter.

It would be useful if the documentation mention that error code in the sixth, 
seventh and eighth parameters paragraph.

Thanks a lot.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to