php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5009 odbc fields are not updated correctly
Submitted: 2000-06-13 20:48 UTC Modified: 2002-06-16 08:26 UTC
From: gordonl at tts-sf dot com Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 3.0.16 OS: Linux mandrake 7.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gordonl at tts-sf dot com
New email:
PHP Version: OS:

 

 [2000-06-13 20:48 UTC] gordonl at tts-sf dot com
we ran the odbc_exec function with the string 
"INSERT into web_call_results
(wcr_script,wcr_notes,wcr_phone,wcr_result,wcr_input_oper,wcr_date_input,wcr_date_modify,wcr_grade,wcr_activity)
VALUES (1010,'testA',2171866,563,10085,'2000-06-13 11:28:29','2000-06-13 11:28:29',0.0,5)" and it runs okay.

If we run it (the only difference being the placement of the wcr_notes field) as 
"INSERT into web_call_results
(wcr_script,wcr_phone,wcr_result,wcr_input_oper,wcr_date_input,wcr_date_modify,wcr_grade,wcr_activity,wcr_notes)
VALUES (1010,2171866,563,10085,'2000-06-13 11:28:29','2000-06-13 11:28:29',0.0,5,'testA')" 

It does not run correctly. Specifically, an internal buffer is used for certain fields and it is not cleared some of the time. In the database (informix) the wcr_notes field has the value "testA06-13 11:28:29" instead of "testA".

We are using the informix odbc driver. The statements run okay from the informix sql editor. wcr_notes is a blob type field.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-16 08:26 UTC] sander@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Dec 05 08:01:24 2020 UTC