Re: [sqlite] Bug when modifying user-defined function with -1 arguments

2012-04-06 Thread Jim Ursetto
At 01:32pm on 2012 April 06, Richard Hipp did write: > On Fri, Apr 6, 2012 at 1:54 PM, Jim Ursetto wrote: > > Create a function foo with 1 argument, encoding UTF8 > > Create a function foo with -1 arguments, encoding UTF8 > > Delete or modify foo with -1 arguments, encoding UTF8 > > - However, nA

Re: [sqlite] Bug when modifying user-defined function with -1 arguments

2012-04-06 Thread Richard Hipp
On Fri, Apr 6, 2012 at 1:54 PM, Jim Ursetto wrote: > I believe there is a bug when deleting or modifying an existing function > with nArg == -1, when there is also an existing function of the same name > with nArg >= 0. It occurs because when nArg == -1, the match quality is > always 6 for the f

[sqlite] Bug when modifying user-defined function with -1 arguments

2012-04-06 Thread Jim Ursetto
I believe there is a bug when deleting or modifying an existing function with nArg == -1, when there is also an existing function of the same name with nArg >= 0. It occurs because when nArg == -1, the match quality is always 6 for the first function encountered regardless of arity, assuming enco