| 112 | |
| 113 | #[test] |
| 114 | fn test_table_exists() { |
| 115 | let conn = Connection::open_in_memory().unwrap(); |
| 116 | |
| 117 | // Create test table |
| 118 | conn.execute("CREATE TABLE test_table (id INTEGER, name TEXT)", []).unwrap(); |
| 119 | |
| 120 | // Test table existence |
| 121 | assert!(ObjectResolver::table_exists(&conn, "test_table").unwrap()); |
| 122 | assert!(!ObjectResolver::table_exists(&conn, "nonexistent_table").unwrap()); |
| 123 | |
| 124 | // Test case insensitive |
| 125 | assert!(ObjectResolver::table_exists(&conn, "TEST_TABLE").unwrap()); |
| 126 | } |
| 127 | |
| 128 | #[test] |
| 129 | fn test_resolve_column_oid() { |