Skip to content

SAST-Check- Dereference after null check sqlmock_go18.go file #296

Description

@raghvendra-dixit

Operating system and Go Version

Linux

Issue

As part of SAST tool run Coverity scam, we could see the code in the mentioned file could land up in null check exception error. Attached screenshot for reference.
sqlmock_go18

image

Reproduction steps

Expected Result

we should be handling the error properly here.

Actual Result

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions