| 383 | } |
| 384 | |
| 385 | static char *tunables_generator(const char *text, const int state) |
| 386 | { |
| 387 | char sql[256]; |
| 388 | if (*text) |
| 389 | //TODO: escape text |
| 390 | snprintf(sql, sizeof(sql), |
| 391 | "SELECT DISTINCT name FROM comdb2_tunables " |
| 392 | "WHERE name LIKE '%s%%'", |
| 393 | text); |
| 394 | else |
| 395 | snprintf(sql, sizeof(sql), |
| 396 | "SELECT DISTINCT name FROM comdb2_tunables"); |
| 397 | return db_generator(state, sql); |
| 398 | } |
| 399 | |
| 400 | static char *tables_generator(const char *text, const int state) |
| 401 | { |
nothing calls this directly
no test coverage detected