|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-07 23:43 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 17:00:02 2025 UTC |
Description: ------------ Hello! I call a stored procedure as follows: $sp=mssql_init("spTest"); $VarTemp=''; mssql_bind($sp,"@Param1",$VarTemp,SQLVARCHAR,0,false,100); $ResultSet = mssql_execute($sp); When param "@Param1" is passed to stored procedure, it gets null instead of an empty string. Note that "Is_Null" parameter is set to false. Reproduce code: --------------- $sp=mssql_init("spTest"); $VarTemp=''; mssql_bind($sp,"@Param1",$VarTemp,SQLVARCHAR,0,false,100); $ResultSet = mssql_execute($sp); Expected result: ---------------- Stored procedure should receive an empty string as value of "@Param1" parameter. Actual result: -------------- Stored procedure receives NULL as value of "@Param1" parameter.