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

Function set_table

modules/sqlops/sqlops_db.c:271–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269
270
271static 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

Callers 8

sql_avp_loadFunction · 0.85
sql_avp_storeFunction · 0.85
sql_avp_deleteFunction · 0.85
sql_api_selectFunction · 0.85
sql_api_updateFunction · 0.85
sql_api_insertFunction · 0.85
sql_api_deleteFunction · 0.85
sql_api_replaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected