scanInsertStatement analyzes INSERT for injection patterns.
(stmt *ast.InsertStatement, result *ScanResult)
| 681 | |
| 682 | // scanInsertStatement analyzes INSERT for injection patterns. |
| 683 | func (s *Scanner) scanInsertStatement(stmt *ast.InsertStatement, result *ScanResult) { |
| 684 | // Check values for suspicious patterns (multi-row support) |
| 685 | for _, row := range stmt.Values { |
| 686 | for _, val := range row { |
| 687 | s.scanExpressionForDangerousFunctions(val, result) |
| 688 | } |
| 689 | } |
| 690 | } |
| 691 | |
| 692 | // scanUpdateStatement analyzes UPDATE for injection patterns. |
| 693 | func (s *Scanner) scanUpdateStatement(stmt *ast.UpdateStatement, result *ScanResult) { |
no test coverage detected