Skip to content

Side effects on tests with Stored Queries are messing up subsequent tests with them #205

@javornikolov

Description

@javornikolov

This has been originally discovered while testing PR #203.

Tests involving stored queries are introducing side effects and subsequent tests with same stored queries are failing. Example:

|execute|create table tn1(n number, name varchar2(100))|

|insert|tn1 |
|n     |name|
|5     |T1  |

|store query|select * from tn1|q1|

# Test 1 (succeeds)
!|Query|<<q1|
|n?    |name|
|5     |T1  |

# Test 2 (fails)
!|Query|<<q1|
|n?    |name|
|5     |T1  |

|execute|drop table tn1|

The problem seems to be that there is a mutable processed flag of DataRows in shared (static) symbols.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions