2021-04-26 20:07:00 +02:00
|
|
|
#coding:utf-8
|
|
|
|
|
2022-01-18 20:45:21 +01:00
|
|
|
"""
|
|
|
|
ID: issue-1281
|
|
|
|
ISSUE: 1281
|
|
|
|
TITLE: DDL - object in use
|
|
|
|
DESCRIPTION:
|
|
|
|
JIRA: CORE-888
|
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-18 20:45:21 +01:00
|
|
|
import pytest
|
|
|
|
from firebird.qa import *
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-18 20:45:21 +01:00
|
|
|
db = db_factory()
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-18 20:45:21 +01:00
|
|
|
test_script = """SET TERM ^ ;
|
2021-04-26 20:07:00 +02:00
|
|
|
CREATE PROCEDURE TestProc
|
|
|
|
AS
|
|
|
|
BEGIN
|
|
|
|
EXIT;
|
|
|
|
END ^
|
|
|
|
SET TERM ; ^
|
|
|
|
|
|
|
|
EXECUTE PROCEDURE TestProc;
|
|
|
|
|
|
|
|
DROP PROCEDURE TestProc;
|
|
|
|
"""
|
|
|
|
|
2022-01-18 20:45:21 +01:00
|
|
|
act = isql_act('db', test_script)
|
2021-04-26 20:07:00 +02:00
|
|
|
|
|
|
|
|
2022-01-18 20:45:21 +01:00
|
|
|
@pytest.mark.version('>=3')
|
|
|
|
def test_1(act: Action):
|
2022-01-25 22:55:48 +01:00
|
|
|
act.execute()
|