Skip to content

[zcodescan.cobol.rules.SqlWhereRule] Distinguish the case of DECLARE CURSOR FOR SELECT from the case of simple SELECT #571

@FALLAI-Denis

Description

@FALLAI-Denis

Description of the enhancement requested

The zcodescan.cobol.rules.SqlWhereRule rule allows you to control the presence of a WHERE clause in a SELECT, DELETE, or UPDATE SQL query.

While a WHERE clause is generally required in a simple SELECT query, this is not necessarily, and often is not, the case in a CURSOR FOR SELECT query, which can process an entire table (especially in batch processing).

The zcodescan.cobol.rules.SqlWhereRule rule should also be able to handle the CURSOR FOR SELECT query independently of the simple SELECT query.

It should also be considered whether there are other SQL statements that need to be handled, such as MERGE.

Thanks.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions