#19734 [Bgs->Opn]: PHP crashes on the REAL data type in a MSSQL query
| From: | andrew at fpef dot co dot za | Date: | Thu, 03 Oct 2002 18:08:37 +0000 |
| Subject: | #19734 [Bgs->Opn]: PHP crashes on the REAL data type in a MSSQL query | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21398@lists.php.net to get a copy of this message | ||
ID: 19734
User updated by: andrew@fpef.co.za
-Summary: PHP wont fetch all rows in a MSSQL query
Reported By: andrew@fpef.co.za
-Status: Bogus
+Status: Open
Bug Type: MSSQL related
Operating System: Windows XP
PHP Version: 4.2.3
New Comment:
Had a further look into the problem and it seems to have to do with the
'REAL' data type. When i changed the data type from REAL to FLOAT in
the Microsoft SQL server 7.0 database things worked again...
The problem comes with PHP.EXE crashing when it encounters this type of
data. Don't know if the REAL type is dissallowed. Tried to provide as
much information as i could give this time....
Previous Comments:
------------------------------------------------------------------------
[2002-10-03 07:50:26] kalowsky@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2002-10-03 06:34:18] andrew@fpef.co.za
I have a table of several thousand rows in a MSSQL database called
amfull. Tried to query this:
SELECT Distance FROM journeys WHERE VehicleBoxNo='44000601'
PHP bombed out on me. Got the XP error "PHP.EXE has generated errors"
So i played around a bit and discovered that if I did the following it
prevented PHP from bombing out.
SELECT TOP 100 Distance FROM journeys WHERE VehicleBoxNo='44000601'
Unfortunately all this does is limit the number of rows to 100 which,
in some cases, is very limiting.
Any suggestions?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19734&edit=1