#31241 [Opn->Csd]: Query that ist empty or null returns DB_ERROR
| From: | derick@php.net | Date: | Wed, 22 Dec 2004 13:14:09 +0000 |
| Subject: | #31241 [Opn->Csd]: Query that ist empty or null returns DB_ERROR | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-70903@lists.php.net to get a copy of this message | ||
ID: 31241
Updated by: derick@php.net
Reported By: rka at planicsware dot de
-Status: Open
+Status: Closed
Bug Type: MSSQL related
Operating System: Windows 2000 Pro SP4
PHP Version: 5.0.3
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2004-12-22 11:53:53] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31241&edit=1