php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34659 mssql_query fails if you have triggers that return resultsets
Submitted: 2005-09-27 16:06 UTC Modified: 2005-10-05 01:00 UTC
From: elite at programmer dot net Assigned:
Status: No Feedback Package: MSSQL related
PHP Version: 5CVS-2005-09-27 (snap) OS: Windows XP/2003
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-09-27 16:06 UTC] elite at programmer dot net
Description:
------------
When you execute a query, e.g. delete a row in a table that has triggers AFTER DELETE and those triggers return resultsets (eg. SELECT id FROM DELETED) PHP will report "Changed database context to '...'" 

Reproduce code:
---------------
mssql_query("DELETE row FROM table1");



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-27 16:44 UTC] fmk@php.net
"Changed database context to '...'" is not generated by PHP but by the database server. It's not an error but a message returned when the current database context was changed.

Your example does not show how the function is failing. Please provide an example that shows the trigger and the full PHP code so we can reproduce the problem and fix the bug, if any.
 [2005-10-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC