summaryrefslogtreecommitdiff
path: root/ext/mssql
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-12-03 02:26:04 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-12-03 02:26:04 +0000
commite99526eb7eb5b1353c8c8c600b8c946247eda45c (patch)
tree4d683eeb84bff553fc3e248fabb86eb75196aed5 /ext/mssql
parent28443546340753edb19dc24cd863c20089d63b20 (diff)
downloadphp-git-e99526eb7eb5b1353c8c8c600b8c946247eda45c.tar.gz
Fixed bug #30962 (mssql returns space for NULL columns).
Diffstat (limited to 'ext/mssql')
-rw-r--r--ext/mssql/php_mssql.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index 0d12dc4ed9..538bc24ba5 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -800,6 +800,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--;