Browse Source

Fix #35037. Selecting a uniqueidentifier would return unknown data type when used with freetds.

migration/RELEASE_1_0_0
Frank M. Kromann 21 years ago
parent
commit
cb34f4e3d3
  1. 4
      ext/mssql/php_mssql.c

4
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: {

Loading…
Cancel
Save