Subject | Re: [firebird-support] Script with 'Drop' in it |
---|---|
Author | Paul Vinkenoog |
Post date | 2013-02-08T01:01:55Z |
Hello Todd,
But your application could check if the UDF name exists in RDB$FUNCTIONS and if so, execute DROP EXTERNAL FUNCTION.
Cheers,
Paul Vinkenoog
> I would like to add a script that does a "DROP EXTERNAL FUNCTION SQRT".In a pure SQL script, I wouldn't know.
>
> The problem I have is that some of the databases that will run this script already have the UDF dropped and so the script errors.
>
> Is there a way to run statements like DROP INDEX, DROP EXTERNAL FUNCTION, etc. in a script without generating an error of the object isn't found?
But your application could check if the UDF name exists in RDB$FUNCTIONS and if so, execute DROP EXTERNAL FUNCTION.
Cheers,
Paul Vinkenoog