List:MySQL++« Previous MessageNext Message »
From:ZeeGeek Date:August 17 2005 2:17am
Subject:Re: how to fetch a row?
View as plain text  
On 8/17/05, Warren Young <mysqlpp@stripped> wrote:
> ZeeGeek wrote:
> >
> > mysqlpp::Connection con(false);
> > con.connect("mysql_cpp_data", "localhost", "test", "test");
> > mysqlpp::Query query = con.query();
> > query << "select * from stock";
> > mysqlpp::ResUse res = query.use();
> > mysqlpp::Row row;
> > while (row = res.fetch_row()) {
> >         std::cout << row["item"] << std::endl;
> > }
> 
> I replaced the code in usequery's try block with your code, and it
> produced just what I expected it to.  Try that, and rebuild the examples
> within the MySQL++ tree.

it worked in usequery, then I updated the current mysql++-1.7.40 to
mysql++-2.0.0 and recompiled my program, it worked! thank you for your
patience, Warren.
 
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe:    http://lists.mysql.com/plusplus?unsub=1
> 
> 



-- 
Dell Inspiron 600m
Pentium-M 1.6G
512MB, 60G
ATI 9000 Mobility
Thread
how to fetch a row?ZeeGeek15 Aug
  • Re: how to fetch a row?Warren Young15 Aug
Re: how to fetch a row?Warren Young16 Aug
  • Re: how to fetch a row?ZeeGeek17 Aug