Comment 3 for bug 421345

Revision history for this message
Jay Pipes (jaypipes) wrote : Re: [Bug 421345] Re: Crash using query logging and use <dbname> statement

Monty Taylor wrote:
> fmpwizard wrote:
>> I thought a little more about it, and a better fix could be to modify
>> getQueryLength() to check is query != NULL, and then decide to return
>> strlen or 0.
>>
>> I like this solution better because it allows anyone to call
>> getQueryLength() without having to worry about query being NULL. (And it
>> works :) )
>
> I think this is the right thing.

Yeah, for now. The *right* thing is replacing char *query with
std::string &query...

-jay