php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31241 Query that ist empty or null returns DB_ERROR
Submitted: 2004-12-22 11:53 UTC Modified: 2004-12-22 14:14 UTC
From: rka at planicsware dot de Assigned:
Status: Closed Package: MSSQL related
PHP Version: 5.0.3 OS: Windows 2000 Pro SP4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rka at planicsware dot de
New email:
PHP Version: OS:

 

 [2004-12-22 11:53 UTC] rka at planicsware dot de
Description:
------------
If you execute an empty query the result is an error "Query failed". In earlier versions the result was bool(true).

Reproduce code:
---------------
//After connect

$result = mssql_query(null);
var_dump($result);

/* or */
// $result = mssql_query("");
//var_dump($result);



Expected result:
----------------
var_dump(result) has to return bool(true)

Actual result:
--------------
Query failed.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-22 14:14 UTC] derick@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC