thank you very much
-----Original Message-----
From: Sinisa Milivojevic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 8:25 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: URGENT: Update Error with MySQL++
Thi Cao writes:
> All,
>
> I can't seem to perform an update on my database with MySQL++. The
> execution of the query always throws an exception. Here's a snippet of
what
> I did.
>
> Query query(&conn);
>
> query << "update employee set children = 3 where id = 9";
> query.execute();
>
> The above code throws an exception everytime. What am I doing wrong?
> Thanks.
>
>
> Thi
>
Don't use streams for commands that do not return result sets.
Use exec() method instead.
--
Regards,
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic <[EMAIL PROTECTED]>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php