(bytes: &[u8])
| 296 | /// Check UPDATE-specific patterns |
| 297 | #[inline(always)] |
| 298 | fn has_update_special_patterns(bytes: &[u8]) -> bool { |
| 299 | // Check for UPDATE ... FROM |
| 300 | if let Some(set_pos) = memchr::memmem::find(bytes, b" SET ") |
| 301 | && memchr::memmem::find(&bytes[set_pos..], b" FROM ").is_some() { |
| 302 | return true; |
| 303 | } |
| 304 | |
| 305 | has_any_special_pattern_fast(bytes) |
| 306 | } |
| 307 | |
| 308 | /// Check DELETE-specific patterns |
| 309 | #[inline(always)] |
no test coverage detected