6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 21:43:06 +01:00
firebird-qa/tests/bugs/core_2098_test.py

43 lines
616 B
Python

#coding:utf-8
"""
ID: issue-2532
ISSUE: 2532
TITLE: View over global temporary table
DESCRIPTION:
JIRA: CORE-2098
FBTEST: bugs.core_2098
"""
import pytest
from firebird.qa import *
init_script = """create global temporary table temptable (
id integer);
commit;
"""
db = db_factory(init=init_script)
test_script = """recreate view tempview1
as
select
a.id as id
from
temptable a;
commit;
recreate view tempview2
as
select
a.id + 1 as id
from
temptable a;
commit;
"""
act = isql_act('db', test_script)
@pytest.mark.version('>=3')
def test_1(act: Action):
act.execute()