|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-28 21:59 UTC] smg at hktl dot com
Hi.
first, my english is not good but I believe you are understand about my
english.
I can't receive return value from DB2/400 Stroed Procedure. next source
<?
$db_conn=odbc_connect("DSNBSN400","WEBUSER","WEBUSER") or die ( odbc_error
() );
$result=odbc_prepare($db_conn,"Call WEBLIB.TEST_SP01(?,?)");
$par[0]=11;$par[1]='';
if(!odbc_execute($result,&$par))
{
print("The odbc statement failed to execute! ");
}
print_r($par);
?>
I want to receive Return Value.
good job
bye
ps : I using to IBM AS/400 DB2 UDB
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 05:00:01 2025 UTC |
Ok, I'll bit. Sorry kalowsky@php.net ODBCv2 does!!! with with procedures. If you look through this database for odbc_execute there are a number of issue mentioned, all to do with accessing stored procedures. It may be that stored procedures in DB2/400 dont work, dont know. But they should for SQLserver, and they should work for both input and OUTPUT parameters. Clearly the ODBC imlementation for PHP does not work when calling a strored procedure when using parameters, thus it is bug. The call syntax (for SQLserver0 can be "{ call x ( ? )}" or "exec x ?" And the paramter should be able to be input/output or both, not just input. My question then is, what is the correct process to get this functionality fixed, it is already in the bugs database and well.... With the mssql functions, may be that code could be used within the ODBC code base to solve the problems. It may also be the reason why the number of complaints re this have dropped. So next time someone has a ODBC issue with stored procedures, just tell the the truth, PHP implementation is buggy, but they can use mssql or something else... 8-))) gt ex Digit with 20 years of Rdb