Skip to content

Commit

Permalink
Allow multi-line "pvar list" strings
Browse files Browse the repository at this point in the history
This directly improves avp_db_query() and cache_raw_query(),
allowing the following (notice param #2):

    avp_db_query("
        SELECT
            table_name,
            table_version
        FROM
            version",
        "$avp(tn),
         $avp(tv)");
  • Loading branch information
liviuchircu committed Jul 26, 2017
1 parent 91da506 commit 071f6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvar.c
Original file line number Diff line number Diff line change
Expand Up @@ -4449,7 +4449,7 @@ pvname_list_t* parse_pvname_list(str *in, unsigned int type)
p = in->s;
while(is_in_str(p, in))
{
while(is_in_str(p, in) && (*p==' '||*p=='\t'||*p==','||*p==';'))
while(is_in_str(p, in) && (is_ws(*p)||*p==','||*p==';'))
p++;
if(!is_in_str(p, in))
{
Expand Down

0 comments on commit 071f6c7

Please sign in to comment.