mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 22:03:04 +01:00
ALTER EXTERNAL FUNCTION: be able to change the entry_point or the module_name when the UDF cannot be dropped to correct the declaration because it's used in some view, procedure, trigger or check.
This commit is contained in:
parent
f948558063
commit
c823700a27
@ -473,7 +473,8 @@ void DYN_modify_filter(Global* gbl, const UCHAR** ptr)
|
|||||||
// *************************************
|
// *************************************
|
||||||
// D Y N _ m o d i f y _ f u n c t i o n
|
// D Y N _ m o d i f y _ f u n c t i o n
|
||||||
// *************************************
|
// *************************************
|
||||||
// Its purpose is to change the comment in the function's record.
|
// Its purpose is to change the comment in the function's record and to
|
||||||
|
// allow changing the entry point and/or the module name.
|
||||||
void DYN_modify_function(Global* gbl, const UCHAR** ptr)
|
void DYN_modify_function(Global* gbl, const UCHAR** ptr)
|
||||||
{
|
{
|
||||||
thread_db* tdbb = JRD_get_thread_data();
|
thread_db* tdbb = JRD_get_thread_data();
|
||||||
@ -508,7 +509,16 @@ void DYN_modify_function(Global* gbl, const UCHAR** ptr)
|
|||||||
X.RDB$DESCRIPTION.NULL = TRUE;
|
X.RDB$DESCRIPTION.NULL = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Other cases should go there, like modifying the entry point or module name.
|
case isc_dyn_func_module_name:
|
||||||
|
GET_STRING(ptr, X.RDB$MODULE_NAME);
|
||||||
|
X.RDB$MODULE_NAME.NULL = FALSE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case isc_dyn_func_entry_point:
|
||||||
|
GET_STRING(ptr, X.RDB$ENTRYPOINT);
|
||||||
|
X.RDB$ENTRYPOINT.NULL = FALSE;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
DYN_unsupported_verb();
|
DYN_unsupported_verb();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user