diff options
author | Frank M. Kromann <fmk@php.net> | 2000-04-15 19:30:45 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2000-04-15 19:30:45 +0000 |
commit | 9e601aaea70e396200aecd1950a960daff5d644c (patch) | |
tree | c3561716e9e6b3e065a9a27f54502e95206d4a45 /ext/mssql/php_mssql.c | |
parent | 2e2642cfb33ffe308b6acea2bfcf7f37f999226b (diff) | |
download | php-git-9e601aaea70e396200aecd1950a960daff5d644c.tar.gz |
Fixing compilation errors in MSSQL module
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r-- | ext/mssql/php_mssql.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 5f2003adf2..3a6910f05c 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -1432,23 +1432,23 @@ PHP_FUNCTION(mssql_result) } convert_to_long_ex(row); - if ((*row)->value.lval < 0 || (*row)->value.lval> = result->num_rows) { - php_error(E_WARNING,"MS SQL: Bad row offset (%d)",row->value.lval); + if ((*row)->value.lval < 0 || (*row)->value.lval >= result->num_rows) { + php_error(E_WARNING,"MS SQL: Bad row offset (%d)", (*row)->value.lval); RETURN_FALSE; } - switch(field->type) { + switch((*field)->type) { case IS_STRING: { int i; for (i=0; i<result->num_fields; i++) { - if (!strcasecmp(result->fields[i].name,field->value.str.val)) { + if (!strcasecmp(result->fields[i].name, (*field)->value.str.val)) { field_offset = i; break; } } if (i>=result->num_fields) { /* no match found */ - php_error(E_WARNING,"MS SQL: %s field not found in result",field->value.str.val); + php_error(E_WARNING,"MS SQL: %s field not found in result", (*field)->value.str.val); RETURN_FALSE; } break; |