MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / w_sql_select_one

Function w_sql_select_one

modules/sqlops/sqlops.c:740–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738
739
740static int w_sql_select_one(struct sip_msg* msg, str* cols, str *table,
741 str *filter, str *order, void* dest, void *url)
742{
743 struct db_url *parsed_url;
744
745 if (url)
746 parsed_url = ((struct db_url_container *)url)->u.url;
747 else
748 parsed_url = default_db_url;
749
750 return ops_sql_api_select(parsed_url, msg, cols, table, filter, order,
751 (pvname_list_t*)dest, 1);
752}
753
754
755static int w_sql_update(struct sip_msg* msg, str* cols, str *table,

Callers

nothing calls this directly

Calls 1

ops_sql_api_selectFunction · 0.85

Tested by

no test coverage detected