Bug #13658 [Fbk->NoF]: Flags not parsed from DSN
| From: | daniel dot oconnor at gmail dot com | Date: | Mon, 23 Mar 2009 17:07:45 +0000 |
| Subject: | Bug #13658 [Fbk->NoF]: Flags not parsed from DSN | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-248@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=13658&edit=1
ID: 13658
Updated by: daniel.oconnor@gmail.com
Reported By: yori at comcast dot net
Summary: Flags not parsed from DSN
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: MDB2
Operating System: Windows XP Professional
PHP Version: 5.2.5
Roadmap Versions:
New Comment:
-Status: Feedback
+Status: No Feedback
Previous Comments:
------------------------------------------------------------------------
[2008-11-23 17:12:54] quipo
Hi Yori, I'd like to add support for SP returning multiple result sets
before the next release, could you send me some sample data and a SP? It
would help me a lot, thanks.
------------------------------------------------------------------------
[2008-06-13 11:23:33] quipo
Hi Yori, can you send me some simple tests to reproduce this bug (e.g.
some sample data and a stored procedure returning multiple resultset)?
Thanks!
------------------------------------------------------------------------
[2008-04-19 13:58:20] quipo
Actually nextResult() is implemented in the mysqli driver... are you
using the mysql driver instead? The (old) mysql extension isn't capable,
AFAIK, please try with the mysqli one.
------------------------------------------------------------------------
[2008-04-13 18:04:53] yori
In attempting to fix this I tried both a while loop of fetchRow()
statements and nextResult() statements.
The nextResult is really the appropriate result to use here but I was
greeted with a friendly "not implemented" error.
It appears that turning those flags on is not currently an option until
nextResult is implemented and we can properly parse multiple results
returned from mysql.
Wishlist?
------------------------------------------------------------------------
[2008-04-13 17:47:42] yori
After a bit more testing I did find a few problems with the multiple
result set.
It's similar to what I mentioned was a theoretical problem before.
Essentially with multiple result sets, you always have to clear the
results before any other query can be sent to the server.
Documented here:
http://dev.mysql.com/doc/refman/5.0/en/mysql-use-result.html
This is not a problem if multi results is turned off, but with it on I
guess there are some additional results that are being tacked on
somewhere which need to be freed before any other query can be made.
In my case specifically I was trying to call an update statement which
would fail with the following error:
Commands out of sync; you can't run this command now
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=13658
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=13658&edit=1