php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35037 unknown data type (36)
Submitted: 2005-10-31 18:11 UTC Modified: 2005-11-01 19:21 UTC
From: spooky at int13h dot com Assigned: fmk (profile)
Status: Closed Package: MSSQL related
PHP Version: 5CVS-2005-10-31 (snap) OS: FreeBSD 5.4
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
50 + 41 = ?
Subscribe to this entry?

 
 [2005-10-31 18:11 UTC] spooky at int13h dot com
Description:
------------
For php5-200510311530 (Also 5.0.5 stable release)

./configure --prefix=/usr/local --with-apxs=/usr/local/apache/bin/apxs --with-libxml-dir=/usr/local 
--with-zlib 
--with-curl 
--with-gd 
--with-ldap 
--with-mssql
--with-pear

For FreeTDS 0.63 
./configure --prefix=/usr/local 
--with-tdsver=8.0
--enable-msdblib

When I fire an SQL Query that returns a uniqueidentifier I get the error 'Warning: mssql_query() [function.mssql-query]: column 1 has unknown data type (36) in /usr/websites/dev/testies.php on line 12'

Reproduce code:
---------------
function connect_sql ()
{
   $mssql_link = mssql_connect('<IP>', '<USER>','<PASSWORD>') or die ("Server Connection Error");
   $mssql_db = mssql_select_db('Websites',$mssql_link) or die("Database Error");
}

connect_sql();

$query = 'select newid() as test';
echo $query . '<br/>';
mssql_query($query);
mssql_close();

Expected result:
----------------
No result should be returned. It should generate a new id.

Actual result:
--------------
'Warning: mssql_query() [function.mssql-query]: column 1 has unknown data type (36) in /usr/websites/dev/testies.php on line 12'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-01 11:38 UTC] sniper@php.net
Frank, can you check this out please?

 [2005-11-01 19:21 UTC] fmk@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 10 04:01:27 2024 UTC