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

Function schema_qualified_two_parts_rejected

nodedb-sql/src/parser/normalize.rs:96–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94
95 #[test]
96 fn schema_qualified_two_parts_rejected() {
97 let name = parse_object_name("SELECT * FROM public.users");
98 let err = normalize_object_name_checked(&name).unwrap_err();
99 assert!(
100 matches!(err, SqlError::Unsupported { .. }),
101 "expected Unsupported, got {err:?}"
102 );
103 let msg = format!("{err}");
104 assert!(
105 msg.contains("public.users") || msg.contains("schema-qualified"),
106 "error should mention the qualified name or schema: {msg}"
107 );
108 }
109
110 #[test]
111 fn schema_qualified_three_parts_rejected() {

Callers

nothing calls this directly

Calls 2

parse_object_nameFunction · 0.85

Tested by

no test coverage detected