diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2004-12-03 02:27:11 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2004-12-03 02:27:11 +0000 |
| commit | fa3568d49097257d1a5d4349e03f81c4c347ceb8 (patch) | |
| tree | bc04fed618aebccb460fe991ce302a89761902ba /ext/mssql/php_mssql.c | |
| parent | 84b568c4be997b6cd348b01fbdf3e1f875464276 (diff) | |
| download | php-git-fa3568d49097257d1a5d4349e03f81c4c347ceb8.tar.gz | |
MFH: Fixed bug #30962 (mssql returns space for NULL columns).
Diffstat (limited to 'ext/mssql/php_mssql.c')
| -rw-r--r-- | ext/mssql/php_mssql.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index fbc5edef3f..20c72194c2 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -787,6 +787,10 @@ static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int off char *data = charcol(offset); length=dbdatlen(mssql_ptr->link,offset); + if (!length) { + ZVAL_EMPTY_STRING(result); + break; + } #if ilia_0 while (length>0 && data[length-1] == ' ') { /* nuke trailing whitespace */ length--; |
