From 9e601aaea70e396200aecd1950a960daff5d644c Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Sat, 15 Apr 2000 19:30:45 +0000 Subject: Fixing compilation errors in MSSQL module --- ext/mssql/php_mssql.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ext/mssql/php_mssql.c') 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; inum_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; -- cgit v1.2.1