| 424 | } |
| 425 | |
| 426 | static char *generic_generator(const char *text, const int state) |
| 427 | { |
| 428 | char sql[256]; |
| 429 | //TODO: escape text |
| 430 | snprintf(sql, sizeof(sql), |
| 431 | "SELECT DISTINCT candidate FROM comdb2_completion('%s')", text); |
| 432 | |
| 433 | return db_generator(state, sql); |
| 434 | } |
| 435 | |
| 436 | // Custom completion function |
| 437 | // |
nothing calls this directly
no test coverage detected