(bytes: &[u8])
| 278 | /// Check INSERT-specific patterns |
| 279 | #[inline(always)] |
| 280 | fn has_insert_special_patterns(bytes: &[u8]) -> bool { |
| 281 | // Check for datetime patterns (dates with - or times with :) |
| 282 | if memchr::memchr(b'\'', bytes).is_some() |
| 283 | && (memchr::memchr(b'-', bytes).is_some() || memchr::memchr(b':', bytes).is_some()) { |
| 284 | return true; |
| 285 | } |
| 286 | |
| 287 | // Check for array literals |
| 288 | if memchr::memchr(b'{', bytes).is_some() || memchr::memmem::find(bytes, b"ARRAY[").is_some() { |
| 289 | return true; |
| 290 | } |
| 291 | |
| 292 | // Check common special patterns |
| 293 | has_any_special_pattern_fast(bytes) |
| 294 | } |
| 295 | |
| 296 | /// Check UPDATE-specific patterns |
| 297 | #[inline(always)] |
no test coverage detected