| 1 | #include "duckdb/catalog/similar_catalog_entry.hpp" | 
|---|---|
| 2 | #include "duckdb/catalog/catalog_entry/schema_catalog_entry.hpp" | 
| 3 | #include "duckdb/catalog/catalog.hpp" | 
| 4 | |
| 5 | namespace duckdb { | 
| 6 | |
| 7 | string SimilarCatalogEntry::GetQualifiedName(bool qualify_catalog, bool qualify_schema) const { | 
| 8 | D_ASSERT(Found()); | 
| 9 | string result; | 
| 10 | if (qualify_catalog) { | 
| 11 | result += schema->catalog.GetName(); | 
| 12 | } | 
| 13 | if (qualify_schema) { | 
| 14 | if (!result.empty()) { | 
| 15 | result += "."; | 
| 16 | } | 
| 17 | result += schema->name; | 
| 18 | } | 
| 19 | if (!result.empty()) { | 
| 20 | result += "."; | 
| 21 | } | 
| 22 | result += name; | 
| 23 | return result; | 
| 24 | } | 
| 25 | |
| 26 | } // namespace duckdb | 
| 27 | 
