apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: [PATCH] add some flags to apr_dbd_mysql flags parameter
Date Sat, 10 Oct 2009 03:21:19 GMT
On Thu, 2009-10-01 at 14:10 +0400, Kevac Marko wrote:
> +    if (fields[6].value != NULL) {
> +        if (strstr(fields[6].value, "CLIENT_FOUND_ROWS")) {
> +            flags |= CLIENT_FOUND_ROWS;
> +        }
> +        else if (strstr(fields[6].value, "CLIENT_MULTI_STATEMENTS"))
> {
> +            flags |= CLIENT_MULTI_STATEMENTS;
> +        }
> +        else if (strstr(fields[6].value, "CLIENT_MULTI_RESULTS")) {
> +            flags |= CLIENT_MULTI_RESULTS;
> +        }

Question here (I didn't look at the manual to check): are all these
flags mutually exclusive? If they are not, we should have 3 ifs instead
of if/else if, right?

-- 
Bojan


Mime
View raw message