|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13817 odbc_exec doesn't allow stored procedures to return results
Submitted: 2001-10-24 13:40 UTC Modified: 2002-04-16 13:14 UTC
Avg. Score:4.5 ± 0.9
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: phpbugs at redskirt dot cx Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 4.0.6 OS: IIS4 on Win NT
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
33 - 23 = ?
Subscribe to this entry?

 [2001-10-24 13:40 UTC] phpbugs at redskirt dot cx
This is probably the same bug that is mentioned in Bug id #5458. As a result, the same proposed fix probably applies.

I'm attempting to retrieve values from MS SQL 7 via ODBC. The format for calling stored procs via ODBC is: 

{? = CALL stored_proc_name(?, ?)}

The question marks are place holders for variable names. 

Bug 5458 suggests making a odbc_bindparameter function to allow values to be returned properly.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-16 12:48 UTC] emartin_lauzer at hotmail dot com
I recommend you to read chapter 3.4.1 of
which explains why, when using ODBC, you cannot get return code from stored procedures whatever the database you use.
 [2002-04-16 13:14 UTC]
Thank you for the answer emartin.  

Unfortunately, re-writing the ODBC standard is not going to be happening in the near future so this bug is marked as BOGUS.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Feb 04 16:05:48 2023 UTC