summaryrefslogtreecommitdiff
path: root/ext/mssql/php_mssql.c
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2005-11-01 18:15:44 +0000
committerFrank M. Kromann <fmk@php.net>2005-11-01 18:15:44 +0000
commit623a2021abdef46bb28007476ac08209064ee710 (patch)
treef294fb68cca124750821226be7b7ec7a3baef19c /ext/mssql/php_mssql.c
parent289402edc6e66c6fdb6deb9cc71e7cf550f35196 (diff)
downloadphp-git-623a2021abdef46bb28007476ac08209064ee710.tar.gz
MFH: Fix #35037. Selecting a uniqueidentifier would return unknown data type when used with freetds.
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r--ext/mssql/php_mssql.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index 3f6c249c9f..ca426aae5c 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -856,6 +856,9 @@ 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 */