php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5456 ifx_fetch_row() error!
Submitted: 2000-07-08 12:27 UTC Modified: 2000-07-11 15:12 UTC
From: jtsai at geotempo dot com Assigned:
Status: Closed Package: Other
PHP Version: 4.0.0 OS: redhead 6.1
Private report: No CVE-ID: None
 [2000-07-08 12:27 UTC] jtsai at geotempo dot com
I have using PHP4.0 whith Informix (IDS 7.3 Linux), and everything is fine.

only when use ifx_fetch_row() to retrieve multiple record with TEXT field(blob) from DB,
if some of the blob field is NULL, it will
couse the ifx_fetch_row() error exception: no memory !!

e.g.
mytable(field1 integer, field2 TEXT, field3 varchar(6))

select * from mytable
...

while(ifx_fetch_row())
==> if the result set include 10 records and 
    row2 ==> field2 is NULL and
    row3 ==> field2 is NULL

when fetch row2 ==> no memory !! (error exception)

ps. the text process is set to:
    ifx_textasvarchar(1); 
    ifx_byteasvarchar(1);      

Please someone can fix it or tell me how to
solf this problem.


jackson Tsai

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-11 15:12 UTC] danny at cvs dot php dot net
I think I have fixed it.

I added an additional check for locator->loc_indicator in case 
ESQL/C does not set the normal indicator variable.

I did a quick test and it seems to work. Please confirm.

Danny
---
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC