From: Frank M. Kromann Date: Tue, 1 Nov 2005 18:14:52 +0000 (+0000) Subject: Fix #35037. Selecting a uniqueidentifier would return unknown data type when used... X-Git-Tag: RELEASE_2_0_1~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb34f4e3d362c321c602260b4468c1464b105739;p=php Fix #35037. Selecting a uniqueidentifier would return unknown data type when used with freetds. --- diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 1b65eb9593..6333fcab18 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -856,13 +856,15 @@ static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int off break; #ifdef SQLUNIQUE case SQLUNIQUE: { +#else + case 36: { /* FreeTDS hack */ +#endif char *data = charcol(offset); /* uniqueidentifier is a 16-byte binary number */ ZVAL_STRINGL(result, data, 16, 1); } break; -#endif case SQLVARBINARY: case SQLBINARY: case SQLIMAGE: {