User defined functions support

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for SQLite
bairog
Posts: 120
Joined: Mon 29 Apr 2013 09:05

Re: User defined functions support

Post by bairog » Fri 22 Jan 2016 06:14

Thank you.
Could you clarify - IsFunctionRegistered() method checks only functionName uniqueness or takes into account several parameters (paramCount, functionType, etc..)?
As far as I know functionName must be unique for a connection - so I cannot add my own FLOOR function with 3 parameters for example - right?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: User defined functions support

Post by Shalex » Fri 22 Jan 2016 08:01

There are two overloads:

Code: Select all

    public bool IsFunctionRegistered(string name, int argumentCount = 0)
    public bool IsFunctionRegistered(SQLiteFunction function)

bairog
Posts: 120
Joined: Mon 29 Apr 2013 09:05

Re: User defined functions support

Post by bairog » Mon 25 Jan 2016 04:51

Thank you.
It's working perfectly.

Post Reply