Skip to content

CLAUDE TESTING: SQL query building does not handle empty lists #302

Description

@yijint

This issue was detected by running schemathesis on a Claude-generated API.

SQL Syntax Errors (~5-10% of errors, ~11-22 failures):

  • Empty lists passed to SQL IN clauses generate invalid SQL: "WHERE id IN ()"
  • Example: GET /api/annot/imageset/uuid/ fails with "OperationalError: near ')': syntax error" when annotations have no associated imagesets
  • Root cause: SQL query building doesn't handle empty lists

Example:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions