From 21f2b9277ff3a878ca57559b96e692f3551320b8 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Wed, 26 Sep 2001 08:35:48 +0000 Subject: 3rd run in back-substitutin Z_* macro's. The val->Z_ cases are all solved now. --- ext/sybase/php_sybase_db.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/sybase/php_sybase_db.c') diff --git a/ext/sybase/php_sybase_db.c b/ext/sybase/php_sybase_db.c index 6bd9ac2f80..1974adfee5 100644 --- a/ext/sybase/php_sybase_db.c +++ b/ext/sybase/php_sybase_db.c @@ -854,7 +854,7 @@ PHP_FUNCTION(sybase_query) if (!result->fields[i].column_source) { result->fields[i].column_source = empty_string; } - result->Z_TYPE(fields[i]) = column_types[i]; + Z_TYPE(result->fields[i]) = column_types[i]; /* set numeric flag */ switch (column_types[i]) { case SYBINT2: @@ -1194,7 +1194,7 @@ PHP_FUNCTION(sybase_fetch_field) add_property_long(return_value, "max_length",result->fields[field_offset].max_length); add_property_string(return_value, "column_source",result->fields[field_offset].column_source, 1); add_property_long(return_value, "numeric", result->fields[field_offset].numeric); - add_property_string(return_value, "type", php_sybase_get_field_name(result->Z_TYPE(fields[field_offset])), 1); + add_property_string(return_value, "type", php_sybase_get_field_name(Z_TYPE(result->fields[field_offset])), 1); } /* }}} */ @@ -1286,7 +1286,7 @@ PHP_FUNCTION(sybase_result) break; } - *return_value = *result->Z_LVAL_P(data[row)][field_offset]; + *return_value = *Z_LVAL_P(result->data[row)][field_offset]; pval_copy_constructor(return_value); } /* }}} */ -- cgit v1.2.1