summaryrefslogtreecommitdiff
path: root/ext/mssql/php_mssql.c
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2005-11-01 18:20:00 +0000
committerFrank M. Kromann <fmk@php.net>2005-11-01 18:20:00 +0000
commit91f971883237aed36002f189b9d04b8f9075f172 (patch)
tree4a7722d915f0e79ef77dac741cde6b79e03dc19d /ext/mssql/php_mssql.c
parent237bcf0da7cbaec8246989a641a14d8fc3051857 (diff)
downloadphp-git-91f971883237aed36002f189b9d04b8f9075f172.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 fa51f04503..f6e40ca02b 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -853,6 +853,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 */