Commit 4324b1c
fix: populate Query field in AnalysisReport to fix test failures
Fixed TestSQLAnalyzer_MixedStatements by implementing buildQueryInfo()
method that populates the Query field with:
- StatementCount: number of SQL statements in AST
- StatementTypes: types of statements (SELECT, INSERT, UPDATE, etc.)
This was a pre-existing bug where the Query field was never populated
in the AnalysisReport, causing StatementCount to always be 0.
Fixes all build failures across Go 1.19, 1.20, and 1.21.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0f76c1b commit 4324b1c
1 file changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
471 | 475 | | |
472 | 476 | | |
473 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
474 | 509 | | |
475 | 510 | | |
476 | 511 | | |
| |||
0 commit comments