console: mark the claim gate's legacy driver fallback for staticcheck
driver.Stmt's Exec and Query are deprecated in favour of the context methods, but they are the only way to run a statement on a driver that lacks them, and database/sql falls back the same way. The old //nolint comments did nothing, since staticcheck reads only //lint:ignore. Comment only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+4
−2
internal/console/store_gate.go+4 −2
diff --git a/internal/console/store_gate.go b/internal/console/store_gate.go| index dfcfbfa82..f9032badb 100644 |
| --- a/internal/console/store_gate.go |
| +++ b/internal/console/store_gate.go |
| @@ -1542,7 +1542,8 @@ func (s *claimStmt) ExecContext(ctx context.Context, args []driver.NamedValue) ( |
| if err != nil { |
| return nil, err |
| } |
| - return s.inner.Exec(vals) //nolint:staticcheck // legacy driver path |
| + //lint:ignore SA1019 the only way to run a statement on a driver without StmtExecContext, as database/sql does |
| + return s.inner.Exec(vals) |
| } |
| func (s *claimStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) { |
| @@ -1567,7 +1568,8 @@ func (s *claimStmt) QueryContext(ctx context.Context, args []driver.NamedValue) |
| if verr != nil { |
| return nil, verr |
| } |
| - rows, err = s.inner.Query(vals) //nolint:staticcheck // legacy driver path |
| + //lint:ignore SA1019 the only way to run a statement on a driver without StmtQueryContext, as database/sql does |
| + rows, err = s.inner.Query(vals) |
| } |
| if err != nil { |
| return nil, err |