Submitted by: Luiz Fernando Trevisan (luizztrevisan) Attachments: [Insert_Returning.zip](https://github.com/FirebirdSQL/jira-attachments/raw/main/CORE/CORE-5592/13171_Insert_Returning.zip) using dbExpress components \(TSQLConnection and TSQLDataSet\) running this command: insert into CAD\_CULTURAS \(EMPRESA, CODIGO, NOME\) values \(1, null, 'soja'\) returning CODIGO The following error message is generated Cursor is not open\. In Firebird 2\.5\.7 the code works perfectly