Well, in a previous answer, Warren used that if-statement and it
worked fine. As for those true/false: they're part of my slog.clog
function and really doesn't have anything to do with SQL.
2008/8/26 Joel Fielder <joel.fielder@stripped>:
>
> Alex wrote:
>>
>> I don't think I have to go about what those true/false means, as
>> they're not the point..
>
> Actually, they are precisely the point. True means that the result object
> is in a good state, false means it's in a bad state. A bad state would be,
> for example, you passed invalid SQL.
>
> The query worked and so the result object is in a good state, it's just that
> there are no results to be had and so it crashes when you try to access a
> non-existent row. Analogy: "0" is a perfectly acceptable answer to "how
> many".
>
> Call num_rows() on res_help_cmd to find out if there are any rows, or my
> preference would be to use Query::for_each().
>
> Joel
>
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe: http://lists.mysql.com/plusplus?unsub=1
>
>
--
GamerzWoW - http://www.gamerzwow.net