Re: [sqlite] The number of parameters passed to user functions

2012-03-13 Thread Max Vlasov
On Tue, Mar 13, 2012 at 3:16 PM, Jean-Christophe Deschamps wrote: > Why do you register the function with -1 in the first place? > Register both 2- and 3-parms functions (if you have those two variations), > both pointing to the same function code: argc is valid and let you

Re: [sqlite] The number of parameters passed to user functions

2012-03-13 Thread Simon Davies
On 13 March 2012 10:59, Max Vlasov 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

Re: [sqlite] The number of parameters passed to user functions

2012-03-13 Thread Jean-Christophe Deschamps
Hi Max, 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

[sqlite] The number of parameters passed to user functions

2012-03-13 Thread Max Vlasov
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