php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27420 Can't execute any SQL query after this kind of query
Submitted: 2004-02-27 10:05 UTC Modified: 2004-03-16 11:59 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: godwizard at hotmail dot com Assigned:
Status: No Feedback Package: MSSQL related
PHP Version: 4.3.4 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
17 - 17 = ?
Subscribe to this entry?

 
 [2004-02-27 10:05 UTC] godwizard at hotmail dot com
Description:
------------
Executing SQL query and trying to move next SQL query but after this query db connection is closed and you can't open db connection again. This problem come's always after that kind of query.

Reproduce code:
---------------
$result = mssql_query( "if exists (select kuvaurl from kuvagalleria where koiraid = $koiraID and oletus = '1') begin select kuvaurl from kuvagalleria where koiraid = $koiraID and oletus = '1' end else select '00091' as kuvaurl" );
while ($a_row = mssql_fetch_array( $result ) )
{
$kuvaurl = "$a_row[kuvaurl]";
}

Expected result:
----------------
I'd like to make another SQL query.

Actual result:
--------------
DB connection is closed and you can't execute any SQL query after that code in same page like it should. Problem is not in SQL Server, the code do sth what anybody doesn't understand.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-16 11:59 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jan 31 01:05:52 2023 UTC