* IndexNameGetIndexDetails returns IndexDetails for the index with given * "name" using SPI. Returns NULL If no such index exists. */
| 993 | * "name" using SPI. Returns NULL If no such index exists. |
| 994 | */ |
| 995 | IndexDetails * |
| 996 | IndexNameGetIndexDetails(uint64 collectionId, const char *indexName) |
| 997 | { |
| 998 | const char *cmdStr = FormatSqlQuery( |
| 999 | "SELECT index_id, index_spec, %s.index_build_is_in_progress(index_id) " |
| 1000 | "FROM %s.collection_indexes WHERE collection_id = $1 AND" |
| 1001 | " (index_spec).index_name = $2 AND" |
| 1002 | " (index_is_valid OR %s.index_build_is_in_progress(index_id))", |
| 1003 | ApiInternalSchemaName, ApiCatalogSchemaName, |
| 1004 | ApiInternalSchemaName); |
| 1005 | return IndexNameGetIndexDetailsCore(cmdStr, collectionId, indexName); |
| 1006 | } |
| 1007 | |
| 1008 | |
| 1009 | static List * |
no test coverage detected