On 13 March 2012 10:59, Max Vlasov <[email protected]> wrote:
> Hi,
>
> Is there a way to know the number of parameters passed for user function
> with undefined argument count (nArg = -1 in the Sqlite3_create_function
> call).
>
> I could not find a function specific to this task and thought that I at
> least can check sqlite3_values array members for zero for my implementation
> of xFunc. But the problem is that for complex queries the undefined members
> sometimes become not-null

argc gives num of args

as in

static void sjdTest(
  sqlite3_context *context,
  int argc,
  sqlite3_value **argv )
{
        sqlite3_result_int( context, argc );
}

.
.
.
> The version of sqlite 3.7.10
>
> So is there reliable way to find the number of parameters of such functions?
>
> Thanks
>
> Max

Regards,
Simon
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to