#19734 [Opn->Fbk]: PHP crashes on the REAL data type in a MSSQL query
| From: | sniper@php.net | Date: | Sun, 08 Dec 2002 16:33:50 +0000 |
| Subject: | #19734 [Opn->Fbk]: 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-27051@lists.php.net to get a copy of this message | ||
ID: 19734
Updated by: sniper@php.net
Reported By: andrew@fpef.co.za
-Status: Open
+Status: Feedback
Bug Type: MSSQL related
Operating System: Windows XP
PHP Version: 4.2.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-10-03 13:08:36] andrew@fpef.co.za
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....
------------------------------------------------------------------------
[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