16.12.2016, 12:51
(
Последний раз редактировалось GoldenLion; 16.12.2016 в 13:32.
)
Hi, what's the difference between cache_get_value and cache_get_value_name, cache_get_value_int and cache_get_value_name_int and so on in MySQL?
cache_get_value cache_get_value_name cache_get_value_int cache_get_value_name_int cache_get_value_float cache_get_value_name_float
Originally Posted by maddinat0r
cache_get_value is just a comfort function (macro actually). Based on the input parameters you provide, it automatically resolves to cache_get_value_name or cache_get_value_index, e.g.:
Код:
cache_get_value(0, 0, data); // translates to cache_get_value_index cache_get_value(0, "field", data); // translates to cache_get_value_name new idx; cache_get_value(0, idx, data); // translates to cache_get_value_index new field[32] = "field2"; cache_get_value(0, string:field, data); // translates to cache_get_value_name |