| 383 | |
| 384 | |
| 385 | int sql_avp_store(struct db_url *url, db_key_t *keys, db_val_t *vals, |
| 386 | int n, const str *table) |
| 387 | { |
| 388 | int r; |
| 389 | static query_list_t *ins_list = NULL; |
| 390 | |
| 391 | if (set_table( url, table ,"store")!=0) |
| 392 | return -1; |
| 393 | |
| 394 | if (con_set_inslist(&url->dbf,url->hdl,&ins_list,keys,n) < 0 ) |
| 395 | CON_RESET_INSLIST(url->hdl); |
| 396 | |
| 397 | r = url->dbf.insert( url->hdl, keys, vals, n); |
| 398 | if (r<0) { |
| 399 | LM_ERR("insert failed\n"); |
| 400 | return -1; |
| 401 | } |
| 402 | return 0; |
| 403 | } |
| 404 | |
| 405 | |
| 406 |
no test coverage detected