Issue Details (XML | Word | Printable)

Key: CORE-4480
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Dmitry Yemanov
Reporter: Pavel Zotov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Firebird Core

ISQL issues warning: "Bad debug info format" when connect to database with stored function after it's restoring

Created: 02/Jul/14 04:22 PM   Updated: 23/Sep/15 11:27 AM
Component/s: ISQL
Affects Version/s: 3.0 Alpha 2
Fix Version/s: 3.0 Beta 1

QA Status: Done successfully
Test Details:
1) Restoring in WI-T3.0.0.30809 finishes with:
gbak: WARNING:function FN_A is not defined
gbak: WARNING: module name or entrypoint could not be found
gbak: WARNING:function FN_A is not defined
gbak: WARNING: module name or entrypoint could not be found

2) Attempt `execute procedure sp_a;` - leads to:
Statement failed, SQLSTATE = 39000
invalid request BLR at offset 29
-function FN_A is not defined
-module name or entrypoint could not be found
-Error while parsing procedure SP_A's BLR


 Description  « Hide
1. Create new database and run the following DDL:

set term ^;
create or alter function fn_a returns varchar(10) as
begin
  return 'tratata';
end
^
create or alter procedure sp_a as
  declare s varchar(10);
begin
  s=fn_a();
end
^
set term ;^
commit;
QUIT;

2. Create .fbk from this database and restore it (e.g. into: tmptest_bad_debug_info.restored.fdb ) .

3. Make connect to restored database:

$ /opt/fb30trnk/bin/isql /var/db/fb30/tmptest_bad_debug_info.restored.fdb
Database: /var/db/fb30/tmptest_bad_debug_info.restored.fdb
SQL> execute procedure sp_a;
Bad debug info format

PS. Reproduced on:
LI-T3.0.0.31204
WI-T3.0.0.31202

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Dmitry Yemanov made changes - 02/Jul/14 04:53 PM
Field Original Value New Value
Assignee Dmitry Yemanov [ dimitr ]
Dmitry Yemanov made changes - 02/Jul/14 07:18 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 3.0 Beta 1 [ 10332 ]
Resolution Fixed [ 1 ]
Pavel Zotov made changes - 03/Jun/15 02:02 PM
Status Resolved [ 5 ] Resolved [ 5 ]
Test Details 1) Restoring in WI-T3.0.0.30809 finishes with:
gbak: WARNING:function FN_A is not defined
gbak: WARNING: module name or entrypoint could not be found
gbak: WARNING:function FN_A is not defined
gbak: WARNING: module name or entrypoint could not be found

2) Attempt `execute procedure sp_a;` - leads to:
Statement failed, SQLSTATE = 39000
invalid request BLR at offset 29
-function FN_A is not defined
-module name or entrypoint could not be found
-Error while parsing procedure SP_A's BLR
QA Status Done successfully
Pavel Cisar made changes - 23/Sep/15 11:27 AM
Status Resolved [ 5 ] Closed [ 6 ]