summaryrefslogtreecommitdiff
path: root/ext/sybase
diff options
context:
space:
mode:
authorJeroen van Wolffelaar <jeroen@php.net>2001-09-26 08:35:48 +0000
committerJeroen van Wolffelaar <jeroen@php.net>2001-09-26 08:35:48 +0000
commit21f2b9277ff3a878ca57559b96e692f3551320b8 (patch)
tree2531c27273ebcf5c475ebc92979134ed89929185 /ext/sybase
parentb0468809ff52a10653718cc47e8a760b8ac1b0ad (diff)
downloadphp-git-21f2b9277ff3a878ca57559b96e692f3551320b8.tar.gz
3rd run in back-substitutin Z_* macro's. The val->Z_ cases are all solved now.
Diffstat (limited to 'ext/sybase')
-rw-r--r--ext/sybase/php_sybase_db.c6
1 files changed, 3 insertions, 3 deletions
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);
}
/* }}} */