rollback works incorrect for some metadata changes
--------------------------------------------------
Key: CORE-4636
URL: http://tracker.firebirdsql.org/browse/CORE-4636
Project: Firebird Core
Issue Type: Bug
Components: Engine
Affects Versions: 3.0 Beta 2
Environment: 3.0.0.31455 embedded
Reporter: Nick Dee
(1):
-------
DECLARE EXTERNAL FUNCTION F RETURNS INTEGER BY VALUE ENTRY_POINT 'F'
MODULE_NAME 'MyUdf';
commit;
-------
(2):
-------
CREATE TABLE T (ID INTEGER NOT NULL);
alter table T add constraint PK_T primary key (ID);
create or alter trigger TR for T active after insert position 0
as
declare H Integer;
begin
H = F();
end;
commit;
-------
Invalid token.
invalid request BLR at offset 18.
function F is not defined.
module name or entrypoint could not be found
(3):
-------
make full disconnect.
copy MyUdf.dll to udf folder,
connect and try again (2).
-------
This operation is not defined for system tables.
unsuccessful metadata update.
cannot create index PK_T.
I see 2 bugs:
1. database is in inconsistent state after rollback on step (2) .
2. checking for existance of udf library on ddl statement is serious
restriction (maybe we need to create parameter in dbconfig for it).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel