2021-04-26 20:07:00 +02:00
|
|
|
#coding:utf-8
|
|
|
|
|
2022-01-23 20:41:55 +01:00
|
|
|
"""
|
|
|
|
ID: issue-4800
|
|
|
|
ISSUE: 4800
|
|
|
|
TITLE: ISQL issues warning: "Bad debug info format" when connect to database with stored function after it`s restoring
|
|
|
|
DESCRIPTION:
|
|
|
|
JIRA: CORE-4480
|
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-23 20:41:55 +01:00
|
|
|
import pytest
|
|
|
|
from firebird.qa import *
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-23 20:41:55 +01:00
|
|
|
init_script = """
|
2021-04-26 20:07:00 +02:00
|
|
|
-- Note: core4480.fbk was created by WI-T3.0.0.30809 Firebird 3.0 Alpha 2.
|
|
|
|
-- Retoring of this file 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
|
2021-12-22 20:23:11 +01:00
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-23 20:41:55 +01:00
|
|
|
db = db_factory(from_backup='core4480.fbk', init=init_script)
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-23 20:41:55 +01:00
|
|
|
test_script = """
|
2021-04-26 20:07:00 +02:00
|
|
|
execute procedure sp_a;
|
2021-12-22 20:23:11 +01:00
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-23 20:41:55 +01:00
|
|
|
act = isql_act('db', test_script)
|
2021-04-26 20:07:00 +02:00
|
|
|
|
|
|
|
@pytest.mark.version('>=3.0')
|
2022-01-23 20:41:55 +01:00
|
|
|
def test_1(act: Action):
|
2022-01-25 22:55:48 +01:00
|
|
|
act.execute()
|