|
|
@ -305,18 +305,6 @@ field_variable_([]) -> |
|
|
|
param_variable(Key) -> |
|
|
|
?erl:variable("Param_" ++ integer_to_list(Key)). |
|
|
|
|
|
|
|
%% @private Generate a list of field variable names. |
|
|
|
%% Walk the query tree and generate a safe variable name string for each field |
|
|
|
%% that is accessed by the conditions in the query. Only allow alpha-numeric. |
|
|
|
%%-spec field_variables(glc_ops:op()) -> [{atom(), string()}]. |
|
|
|
%%field_variables(Query) -> |
|
|
|
%% lists:usort(field_variables_(Query)). |
|
|
|
|
|
|
|
%%-spec field_variables(glc_ops:op()) -> [{atom(), string()}]. |
|
|
|
%%field_variables_({Key, '=', _Term}) -> |
|
|
|
%% [{Key, field_variable(Key)}]. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%% @private Return an expression to increment a counter. |
|
|
|
%% @todo Pass state record. Only Generate code if `statistics' is enabled. |
|
|
|