| 488 | } |
| 489 | |
| 490 | int Schema_RemoveIndex |
| 491 | ( |
| 492 | Schema *s, |
| 493 | const char *field, |
| 494 | IndexType type |
| 495 | ) { |
| 496 | ASSERT(s != NULL); |
| 497 | |
| 498 | switch(type) { |
| 499 | case IDX_FULLTEXT: |
| 500 | return _Schema_RemoveFullTextIndex(s); |
| 501 | case IDX_EXACT_MATCH: |
| 502 | return _Schema_RemoveExactMatchIndex(s, field); |
| 503 | default: |
| 504 | return INDEX_FAIL; |
| 505 | } |
| 506 | } |
| 507 | |
| 508 | // activate pending exact-match index |
| 509 | // asserts that pending exact-match index is enabled |
no test coverage detected