From cb34f4e3d362c321c602260b4468c1464b105739 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Tue, 1 Nov 2005 18:14:52 +0000 Subject: [PATCH] Fix #35037. Selecting a uniqueidentifier would return unknown data type when used with freetds. --- ext/mssql/php_mssql.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: { -- 2.50.1