|
|
Choosing A Webhost: |
unexpected abortion when printing rows: msg#00080db.mysql.c++
I used ResUse as the result type and printed rows in a while loop, but when I used this method in a class member function, it would abort after printing the lines, the codes in the function are: mysqlpp::Query query = con.query(); mysqlpp::ResUse res; mysqlpp::Row row; query << "select * from db_entry"; res = query.use(); while (row = res.fetch_row()) { std::cout << row["id"] << std::endl; } but it didn't abort if I just put them in main() without using class. Am I missing any important thing? -- Dell Inspiron 600m Pentium-M 1.6G 512MB, 60G ATI 9000 Mobility
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Undefined reference to Connection object...., Josh Bigelow |
|---|---|
| Next by Date: | Using mysql c/c++ API project, jinzhucheng |
| Previous by Thread: | Undefined reference to Connection object...., Josh Bigelow |
| Next by Thread: | Re: unexpected abortion when printing rows, ZeeGeek |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |