Permalink
Browse files

added if location support to mysql_query, mysql_subrequest & mysql_es…

…cape
  • Loading branch information...
1 parent b07b437 commit dc8c84c359658710d95145b4b4d9a29c7ae828be @arut committed Feb 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 ngx_http_mysql_module.c
@@ -158,21 +158,21 @@ static ngx_command_t ngx_http_mysql_commands[] = {
*/
{ ngx_string("mysql_query"),
- NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
+ NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_TAKE1,
ngx_http_mysql_query,
NGX_HTTP_LOC_CONF_OFFSET,
0,
NULL },
{ ngx_string("mysql_subrequest"),
- NGX_HTTP_LOC_CONF|NGX_CONF_1MORE,
+ NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_1MORE,
ngx_http_mysql_subrequest,
NGX_HTTP_LOC_CONF_OFFSET,
0,
NULL },
{ ngx_string("mysql_escape"),
- NGX_HTTP_LOC_CONF|NGX_CONF_TAKE2,
+ NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_TAKE2,
ngx_http_mysql_escape,
NGX_HTTP_LOC_CONF_OFFSET,
0,

0 comments on commit dc8c84c

Please sign in to comment.