diff options
author | Frank M. Kromann <fmk@php.net> | 2007-02-04 21:19:37 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2007-02-04 21:19:37 +0000 |
commit | b436ad2af56f838dd293e56b842259418ec02b5e (patch) | |
tree | 972a48f357315b8eb365b68a82affc07f913a67c /ext/mssql/php_mssql.c | |
parent | 850998256cfe4f425f57dd61b55485af05f2eb94 (diff) | |
download | php-git-b436ad2af56f838dd293e56b842259418ec02b5e.tar.gz |
#39213
Fix for '' returned as ' '.
This only works with FreeTDS as microsofts library returns a length of 1 for an empty string!
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r-- | ext/mssql/php_mssql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 26881e872c..764151a3d3 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -821,7 +821,7 @@ PHP_FUNCTION(mssql_select_db) static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int offset,zval *result, int column_type TSRMLS_DC) { - if (dbdatlen(mssql_ptr->link,offset) == 0) { + if (dbdata(mssql_ptr->link,offset) == NULL && dbdatlen(mssql_ptr->link,offset) == 0) { ZVAL_NULL(result); return; } |