Stan <[EMAIL PROTECTED]> wrote:
Thanks for answer. Yes, I have read this many times, but...
...I'm dumb maybe.
I understand first 5 parameters in the "sqlite3_create_function".
xStep and xFinal will be NULL.

But there are my problems:
1) Return value xFunc is void? I have to return integer.

sqlite3_result_int

2) Where are described parameters in xFunc? E.g. what is it
"sqlite3_context"?

An opaque handle you pass to sqlite3_result_* and sqlite3_user_data.

The second parameter of xFunc is the number of values in the array pointed to by the third parameter. The third is an array of sqlite3_value* pointers, each representing a parameter to the function from SQL invocation. You can read the actual values using sqlite3_value_* functions.

Igor Tandetnik

Reply via email to