| 269 | |
| 270 | |
| 271 | static inline int set_table( struct db_url *url, const str *table, char *func) |
| 272 | { |
| 273 | if (table && table->s) { |
| 274 | if ( url->dbf.use_table( url->hdl, table)<0 ) { |
| 275 | LM_ERR("db-%s: cannot set table \"%.*s\"\n", |
| 276 | func, table->len, table->s); |
| 277 | return -1; |
| 278 | } |
| 279 | } else { |
| 280 | if ( url->dbf.use_table( url->hdl, &def_table)<0 ) { |
| 281 | LM_ERR("db-%s: cannot set table \"%.*s\"\n", |
| 282 | func, def_table.len, def_table.s); |
| 283 | return -1; |
| 284 | } |
| 285 | } |
| 286 | return 0; |
| 287 | } |
| 288 | |
| 289 | |
| 290 |
no outgoing calls
no test coverage detected