MCPcopy Create free account
hub / github.com/erans/pgsqlite / has_update_special_patterns

Function has_update_special_patterns

src/query/unified_processor.rs:298–306  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

296/// Check UPDATE-specific patterns
297#[inline(always)]
298fn 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)]

Callers 1

process_queryFunction · 0.85

Calls 1

Tested by

no test coverage detected