php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33000 unknown data type
Submitted: 2005-05-10 15:29 UTC Modified: 2005-06-04 01:00 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: thomas at pipelineinteractive dot com Assigned:
Status: No Feedback Package: MSSQL related
PHP Version: 5.0.3 OS: RedHat 9
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-05-10 15:29 UTC] thomas at pipelineinteractive dot com
Description:
------------
Unknown Data Type in Column X returned for Uniqueidentifier Data Types.

RedHat 9
Apache 
FreeTDS 0.63
IconV 1.9.1

FreeTDS Configure:
./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib --enable-dbmfix --with-gnu-ld --with-iconv=/usr/local --enable-sybase-compat --enable-extra-checks

PHP Configure:
./configure --with-iconv=/usr/local --with-apxs2=/usr/local/apache2/bin/apxs --enable-versioning --with-mssql=/usr/local/freetds --enable-libxml --enable-soap --with-ftp --enable-sockets --enable-track-vars --enable-versioning --enable-msdblib

Reproduce code:
---------------
$con = mssql_connect('<IP>', '<user>', '<pass>') or die(mssql_get_last_message());
mssql_select_db ("<DB>", $con);
$sql= "SELECT TOP 1 * FROM <TABLE>";
$rs= mssql_query ($sql, $con);
echo "The field number one is: ";
echo mssql_result ($rs, 0, 0);
mssql_close ($con);

Expected result:
----------------
The field number one is: <Followed by a Uniqueidentifier>

Actual result:
--------------
Warning: mssql_query() [function.mssql-query]: column 1 has unknown data type (36) in query.php on line 7

Warning: mssql_query() [function.mssql-query]: column 2 has unknown data type (36) in query.php on line 7

Warning: mssql_query() [function.mssql-query]: column 15 has unknown data type (36) in query.php on line 7
The field number one is:

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-27 09:15 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-06-04 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 08 15:03:46 2022 UTC