diff options
| author | Frank M. Kromann <fmk@php.net> | 2007-02-04 21:24:28 +0000 |
|---|---|---|
| committer | Frank M. Kromann <fmk@php.net> | 2007-02-04 21:24:28 +0000 |
| commit | 4874397501229777f8ddfd3b23dc953797379b5f (patch) | |
| tree | b0989562d5d415f7258544cc3ddc552a40971cdc /ext/mssql/php_mssql.c | |
| parent | c2d5db56ca1fdbb9f71b9a5df4b6b02152af963b (diff) | |
| download | php-git-4874397501229777f8ddfd3b23dc953797379b5f.tar.gz | |
MFB: #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 1e42573326..6d62af0b1a 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; } |
