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

Function qualified_column_resolves_correctly

nodedb-sql/src/resolver/columns.rs:446–453  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

444 /// Qualified column reference: `"t"."col"` → table `t`, column `col`.
445 #[test]
446 fn qualified_column_resolves_correctly() {
447 let scope = scope_with(strict_collection("t", vec!["col", "other"]));
448 let (table, col) = scope
449 .resolve_column(Some("t"), "col")
450 .expect("qualified column should resolve");
451 assert_eq!(table, "t");
452 assert_eq!(col, "col");
453 }
454
455 /// Qualified reference to an unknown column in a strict collection must
456 /// yield `SqlError::UnknownColumn`, not `Unsupported`.

Callers

nothing calls this directly

Calls 4

scope_withFunction · 0.85
strict_collectionFunction · 0.85
expectMethod · 0.45
resolve_columnMethod · 0.45

Tested by

no test coverage detected