Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Error in User Manual?: msg#00114

db.mysql.c++

Subject: Error in User Manual?

Hi!

I'm pretty new to MySql++ so please forgive me if I've overlooked something. Here's my problem.

In Section 2.3, "Queries That Return Data: Dynamic Method" of the User Manual (as on http://tangentsoft.net/mysql++/doc/userman/html/overview.html) the following is stated:

The easiest way to retrieve data from MySQL uses a Result object,
which includes one or more Row objects. Because these classes are
std::vector-like containers, you can treat the result set as a
two-dimensional array. For example, you can get the 5th item on the
2nd row by simply saying result[1][4]. You can also access row
elements by field name, like this: result[2].lookup_by_name("price").

But as far as I can tell the Result object doesn't even supply an operator[] and if I try to use the "result[][]" notation I get a compile error ("error: no match for 'operator[]' in 'result[0]').

So, what's the right way? Should I do "result.at(0)[0]" instead?

I'm using MySql++ 2.0.5.

Thanks.

-Kim




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation