MCPcopy Create free account
hub / github.com/apache/httpd / ap_dbd_sql_init

Function ap_dbd_sql_init

modules/database/mod_dbd.c:140–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140static void ap_dbd_sql_init(server_rec *s, const char *query)
141{
142 svr_cfg *svr;
143 const char **arr_item;
144
145 svr = ap_get_module_config(s->module_config, &dbd_module);
146 if (!svr) {
147 /* some modules may call from within config directive handlers, and
148 * if these are called in a server context that contains no mod_dbd
149 * config directives, then we have to create our own server config
150 */
151 svr = create_dbd_config(config_pool, s);
152 ap_set_module_config(s->module_config, &dbd_module, svr);
153 }
154
155 if (query) {
156 arr_item = apr_array_push(svr->cfg->init_queries);
157 *arr_item = query;
158 }
159}
160
161static const char *dbd_param(cmd_parms *cmd, void *dconf, const char *val)
162{

Callers 1

dbd_init_sqlFunction · 0.85

Calls 3

ap_get_module_configFunction · 0.85
create_dbd_configFunction · 0.85
ap_set_module_configFunction · 0.85

Tested by

no test coverage detected