php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22623 In MSSQL 2000 Server real type is read as unknown type
Submitted: 2003-03-10 07:54 UTC Modified: 2003-05-21 02:07 UTC
From: tolochanov at elit dot lviv dot net Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.3.1 OS: Windows 2000 Professional SP3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tolochanov at elit dot lviv dot net
New email:
PHP Version: OS:

 

 [2003-03-10 07:54 UTC] tolochanov at elit dot lviv dot net
SQL 2000 Server on Win2000 Adv Server
Apache 2.0.43,PHP 4.3.1 on Win 2000 SP3

   While attempting to read field which contains data of 'real' type (for ex. - 24,00 168,00 etc.), I get some sort of '1.36741241919E-304' or other number near zero on every attempt. If I set that field to SmallInt, the reading is OK.
   Function mssql_field_type() returns type 'unknown'.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-10 07:59 UTC] tolochanov at elit dot lviv dot net
I used  mssql_fetch_row() function.
 [2003-03-12 04:36 UTC] tolochanov at elit dot lviv dot net
Latest Linux version works good.
Latest Windows version still don't read type 'real' correctly.
 [2003-05-20 18:47 UTC] fmk@php.net
This has been fixed in cvs. I have just verified it with the latest CVS and it works on both Linux and Win32.
 [2003-05-21 02:07 UTC] tolochanov at elit dot lviv dot net
Thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 17:01:29 2024 UTC