Bug #13445 Updated: odbc_execute gives "SQL data type out of range" error for store procedure
| From: | kalowsky@php.net | Date: | Tue, 16 Apr 2002 18:03:51 +0000 |
| Subject: | Bug #13445 Updated: odbc_execute gives "SQL data type out of range" error for store procedure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5130@lists.php.net to get a copy of this message | ||
ID: 13445
Updated by: kalowsky@php.net
Reported By: gordonl@tts-sf.com
-Status: Open
+Status: Closed
Bug Type: ODBC related
Operating System: mandrake linux 2.15
PHP Version: 4.0.4pl1
New Comment:
ODBC does not work with procedures, sorry. Please read the MS ODBC
specification for more information regarding this at
http://www.microsoft.com/data/odbc
Previous Comments:
------------------------------------------------------------------------
[2001-09-25 20:45:12] gordonl@tts-sf.com
I am going to an informix 9.3 server and the following code works:
$ce_notes ="sfasdfasdfsadfsadfasdfasdf";
$sql = "insert into call_extension(ce_activity,ce_callresult,ce_notes)
values (" . $ce_activity . ",3211664,?);";
$stmt = odbc_prepare ($crs,$sql );
$sqldata = array ($ce_notes);
$r = odbc_execute ($stmt, $sqldata);
they following code fails:
$sql = "execute procedure
web_cr_update(?,'ADD',1312,4748999,17057,'2001-09-25
15:34:16.000','2001-09-25 15:34:16',0,277,null,0,null,14999)";
$stmt = odbc_prepare ($crs,$sql );
$sqldata = array ($ce_notes);
$r = odbc_execute ($stmt, $sqldata);
with the following error:
Warning: SQL error: [Informix][Informix ODBC Driver]SQL data type out
of range., SQL state S1004 in SQLExecute in
/home/httpd/html/followup/calladd.php on line 65
Note: The value in $ce_notes is the same in each case and the line
number refers to odbc_execute line.
It also fails when I try:
$sql = "execute procedure web_filter_modify(?,14999,1312)";
....
Both stored procedures work within a c++ program.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=13445&edit=1