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

Function test_obj_description

src/functions/system_functions.rs:686–705  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

684
685 #[test]
686 fn test_obj_description() {
687 let conn = Connection::open_in_memory().unwrap();
688 register_system_functions(&conn).unwrap();
689
690 // Test two-parameter form (returns NULL since no comments table)
691 let desc: Option<String> = conn.query_row(
692 "SELECT obj_description(123456, 'pg_class')",
693 [],
694 |row| row.get(0)
695 ).unwrap();
696 assert_eq!(desc, None); // Should return NULL
697
698 // Test one-parameter form (deprecated)
699 let desc: Option<String> = conn.query_row(
700 "SELECT obj_description(123456)",
701 [],
702 |row| row.get(0)
703 ).unwrap();
704 assert_eq!(desc, None); // Should return NULL
705 }
706
707 #[test]
708 fn test_col_description() {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected