#33000 [NEW]: unknown data type
| From: | thomas at pipelineinteractive dot com | Date: | Tue, 10 May 2005 13:29:56 +0000 |
| Subject: | #33000 [NEW]: unknown data type | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-78860@lists.php.net to get a copy of this message | ||
From: thomas at pipelineinteractive dot com
Operating system: RedHat 9
PHP version: 5.0.3
PHP Bug Type: MSSQL related
Bug description: unknown data type
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:
--
Edit bug report at http://bugs.php.net/?id=33000&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33000&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33000&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33000&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33000&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33000&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33000&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33000&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33000&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33000&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33000&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33000&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33000&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33000&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33000&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33000&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33000&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33000&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33000&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33000&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33000&r=mysqlcfg