()
| 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() { |
nothing calls this directly
no test coverage detected