MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / doubled_quote_escape_in_string

Function doubled_quote_escape_in_string

nodedb-sql/src/parser/preprocess/lex.rs:387–396  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

385
386 #[test]
387 fn doubled_quote_escape_in_string() {
388 let segs = segments("SELECT 'it''s'");
389 assert_eq!(
390 segs,
391 vec![
392 SqlSegment::Text("SELECT "),
393 SqlSegment::SingleQuotedString("'it''s'"),
394 ]
395 );
396 }
397
398 #[test]
399 fn escape_string_prefix() {

Callers

nothing calls this directly

Calls 1

segmentsFunction · 0.85

Tested by

no test coverage detected