logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Stored Procedures & Multiple Result Sets: msg#00036

db.mysql.c++

Subject: Re: Stored Procedures & Multiple Result Sets

Jalon, Arnon wrote:

Hi, I've created a patch for the ability to handle multi statement
queries that return multiple result sets.

Thanks! I'm going to apply it to v2.0, with some changes. See attached patch.

Some of the differences are style differences, but for a lot of it I felt that the patch just didn't go far enough.

For instance, your example disabled exceptions, where it should have paid attention to them as warnings that the internals of the library were confused about what was going on.

Another example is your extension of connect_to_db() to add the necessary connection flag, instead of adding a mysql_set_server_option() wrapper to Connection to allow this flag to be set at any time.

I'm attaching that, as well
as multiquery.cpp, which is intended to go in the examples directory.

FYI, with a suitable diff statement, the example could have been part of the patch. Also, it would have been nice if you'd provided patches for examples/Makefile.simple.

I also modified the copy method of the ResUse class to make sure that a
ResUse object gets properly purged if an un-initialized ResUse object-
one with a null result_- gets assigned to it.

That's reasonable.

Can you explain why this change was needed, though:

- fields_ = other.fields_;
+ fields_ = Fields(this);

?

Attachment: multiquery2.diff.gz
Description: application/gzip


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



Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

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

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo