Skip to content

Client could crash if DDL and DML are executed in the same transaction [CORE2130] #2561

Open
@firebird-automations

Description

@firebird-automations

Submitted by: Kuznetsov Eugene (eugene)

Testing for 2.5, but other versions are also undergone.

isql failed (AV in fbclient.dll) when trying executing select statement, as no fields
exist at that moment. Server should return an error, but doesn't do it.

SET AUTODDL OFF;
SET SQL DIALECT 3;
SET NAMES WIN1251;

CONNECT test25 USER 'SYSDBA' PASSWORD 'masterkey';

CREATE TABLE NEW_TABLE7 (ID SMALLINT NOT NULL);
COMMIT;

insert into NEW_TABLE7(ID) VALUES (0);
COMMIT;

ALTER TABLE NEW_TABLE7
ADD FIELD1 CHAR(1) NOT NULL;

ALTER TABLE NEW_TABLE7
DROP ID;

select * from New_table7;

COMMIT;

--
Best regards, Eugene

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions