logo       


Re: a new query inside a result loop and exception: msg#00061

Subject: Re: a new query inside a result loop and exception
Shigeya Suzuki wrote:
> 
> Now, when the inner query (actually, executing a stored procedure to add
> a record to two tables) fail and raise an exception, while trying to
> unwind stack frame, program stuck at following read().. following is the
> stack trace of the moment.

It's crashing down in the MySQL C library.  I can't really help you
there.  If you cannot avoid the problem, but must fix it, you'll need to
take this up on the main MySQL mailing list, where this is on topic.

> 1) Why this is happening?

Most likely it's because the MySQL network protocol is not made to allow
overlapping queries on a single connection, and there's some fault
caused when you try to get around this limitation by using two
connections.  Because of this limitation, most people write their code
so they don't need overlapping queries, so the problem you're running
into rarely manifests itself.

> 2) Is there any way to exec a stored procedure, while reading result
> using fetch_row() other than using two connections like this?

Is it absolutely required that the two queries be executed concurrently?
 Could you instead build up a list in memory from the first query and
then iterate over that list to build the inner loop queries?

> I'm currently using MySQL 5.0.24 on MacOS X, but by some reason, I built
> binary by myself.

If you decide to take this problem up with the MySQL C library people on
the main MySQL list, they'll ask you to try the native binary.  I would
also try using the Fink package.

> I will try on NetBSD too, but I doubt OS is the source of problem..

I wouldn't be so quick to discount that possibility.  OS X has a number
of differences from the other BSDs.

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




Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | 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