Q042warning

Unused parameter

A parameter line names a placeholder that the query never uses.

db/queries/example.sql:2:4: warning[Q042]: parameter 2 declared as "unused" but not referenced in query
Printed by sgl from a small PostgreSQL reproduction project.

When it is reported

The parameter would be generated and passed, but nothing in the SQL reads it.

How to fix it

Remove the parameter line, or use the placeholder.

In your terminal

$ sgl explain Q042

Look for UnreferencedParameter in Seagull's source to see where it is reported.