php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11785 mysql_unbuffered_query and mysql_query failure.
Submitted: 2001-06-28 13:40 UTC Modified: 2001-06-30 04:23 UTC
From: trozdzyn at anronet dot pl Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.6 OS: Linux redhat 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: trozdzyn at anronet dot pl
New email:
PHP Version: OS:

 

 [2001-06-28 13:40 UTC] trozdzyn at anronet dot pl
I have mysql table with over 60000 records inside.

code:
$sql = "SELECT * FROM database.table ORDER BY field";
$result = mysql_unbuffered_query($sql) or die("Error!");
does not work at all but displays "Error!"

code:
$sql = "SELECT * FROM database.table ORDER BY field limit  1,1000";
$result = mysql_unbuffered_query($sql) or die("Error!");
works fine.

code:
$sql = "SELECT * FROM database.table";
$result = mysql_unbuffered_query($sql) or die("Error!");
works fine.


Moreover , there is exactly the same problem with mysql_query() function...


My system is:
PHP: 4.0.6
MySQL: 3.23.22
Linux Kernel: 2.2.17-14


Help!!!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-30 04:23 UTC] derick@php.net
Try putting this line after the mysql_unbuffered_query line.
You'll probably see the error that MySQL returns. This is most likely a bug in PHP.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 03:01:33 2024 UTC