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

Function has_insert_special_patterns

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

Source from the content-addressed store, hash-verified

278/// Check INSERT-specific patterns
279#[inline(always)]
280fn 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)]

Callers 1

process_queryFunction · 0.85

Calls 1

Tested by

no test coverage detected