#35158 [Opn->Asn]: binding of stored proc input parameters is not working
| From: | sniper@php.net | Date: | Wed, 09 Nov 2005 11:55:02 +0000 |
| Subject: | #35158 [Opn->Asn]: binding of stored proc input parameters is not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-87928@lists.php.net to get a copy of this message | ||
ID: 35158
Updated by: sniper@php.net
Reported By: vladik_g at mail dot ru
-Status: Open
+Status: Assigned
Bug Type: MSSQL related
Operating System: Linux RedHat 9
PHP Version: 5CVS-2005-11-08 (snap)
-Assigned To:
+Assigned To: fmk
New Comment:
Frank, check this out please.
Previous Comments:
------------------------------------------------------------------------
[2005-11-09 11:14:28] vladik_g at mail dot ru
Nothing more.
With php 4.4 on same machine with same other soft all works ok.
------------------------------------------------------------------------
[2005-11-08 20:29:45] sniper@php.net
What else have changed for you except for PHP version?
------------------------------------------------------------------------
[2005-11-08 20:09:47] vladik_g at mail dot ru
Description:
------------
binding input parameters is not really working.
This mechanism was working well in 4-th family of php.
Reproduce code:
---------------
php code here:
mssql_bind($Proc,'@Param1',$Param1,SQLVARCHAR,false,false,30);
mssql_execute($Proc,FALSE) ||
print(mssql_get_last_message());
MSSQL code here:
CREATE PROCEDURE [dbo].[test]
(
@Param1 VARCHAR(30)
)
AS
RETURN 0
GO
Expected result:
----------------
successfull execution
Actual result:
--------------
Procedure 'test' expects parameter '@Param1', which was not supplied.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35158&edit=1