I do realize it was incomplete. I rewrote so it fit my program. I
understood it the way that the resource would return false if there
was no results in the result set. I clearly was wrong and with
num_rows() it seems to work now anyway.
-- How did you come to that conclusion?
Well, I'm fairly sure that in the first place where I just
copy-paste'd it, it ran fine. I might've been wrong, though.
-- I have no intention of telling you where the other bug is. If you
don't develop the skills to find bugs on your own, you're going to
make one sorry programmer.
Well, is there really a point in trying to find that other bug _now_?
I have a piece of working code now (as far as I know; I might've
missed something).
2008/8/26 Warren Young <mysqlpp@stripped>:
> On Aug 26, 2008, at 3:26 AM, Alex wrote:
>
>> Well, in a previous answer, Warren used that if-statement and it
>> worked fine.
>
> How did you come to that conclusion? What I posted was clearly incomplete.
> For it to have been tested, I would have had to write a complete program,
> build it, test it, and then excerpt it to give you that pseudocode. Doesn't
> seem likely, does it?
>
> What I actually did is wrote it off the top of my head, in my email client.
> I did it with the sole purpose illustrating two possible solutions, not to
> provide code for you to cut and past and treat as unassailable. It's up to
> you to understand the ideas communicated and apply them correctly.
>
> There are at least two bugs in the pseudocode I posted; could be more. Joel
> found one of them for you. I have no intention of telling you where the
> other bug is. If you don't develop the skills to find bugs on your own,
> you're going to make one sorry programmer.
>
> --
> 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