Commit 90eff75
committed
fix: drop unused splitSQLStatements shim and unify ArrayConstructor cleanup
- Remove the unused splitSQLStatements shim from pkg/gosqlx/reader.go;
golangci-lint's `unused` checker flagged it because golangci.yml runs
with `tests: false`. The single test caller now uses SplitStatements
directly with the explicit ANSI dialect.
- Route ArrayConstructorExpression.Subquery through releaseStatement
(matching In/Subquery/Exists/Any/All) instead of the type-specific
PutSelectStatement helper, so non-SELECT statement subqueries dispatch
through the shared cleanup path.1 parent efee232 commit 90eff75
3 files changed
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
442 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
443 | 445 | | |
444 | | - | |
| 446 | + | |
445 | 447 | | |
446 | 448 | | |
447 | 449 | | |
| |||
656 | 658 | | |
657 | 659 | | |
658 | 660 | | |
659 | | - | |
| 661 | + | |
| 662 | + | |
660 | 663 | | |
661 | | - | |
| 664 | + | |
662 | 665 | | |
663 | 666 | | |
664 | 667 | | |
| |||
0 commit comments