add FT::numeric to be applied on string types
This commit is contained in:
10
src/model.h
10
src/model.h
@@ -754,7 +754,7 @@ protected:
|
||||
|
||||
if( clearer )
|
||||
{
|
||||
clearer->clear_value(field_value);
|
||||
clearer->clear_value(field_value, field_type);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1050,7 +1050,7 @@ protected:
|
||||
void field_model_iterate_through_childs(Model & field_model, const FT & field_type);
|
||||
void field_model_generate_flat_string(const wchar_t * flat_field_name, Model & field_model, const FT & field_type);
|
||||
void field_model_generate_db_sql(const wchar_t * db_field_name, Model & field_model, const FT & field_type);
|
||||
void field_model_clear_values(Model & field_model);
|
||||
void field_model_clear_values(Model & field_model, const FT & field_type);
|
||||
void field_model_read_values_from_queryresult(const wchar_t * db_field_name, Model & field_model, const FT & field_type);
|
||||
void field_model(const wchar_t * db_field_name, const wchar_t * flat_field_name, Model & field_model, const FT & field_type);
|
||||
void field_model(const wchar_t * db_field_name, const wchar_t * flat_field_name, Model * field_model, const FT & field_type);
|
||||
@@ -1180,13 +1180,13 @@ protected:
|
||||
|
||||
|
||||
template<typename ModelContainer, typename ModelContainerType, typename IsContainerByValueRenameMe>
|
||||
void field_list_clearing_values(ModelContainer & field_container, ModelContainerType * model_container_type, IsContainerByValueRenameMe * foo)
|
||||
void field_list_clearing_values(ModelContainer & field_container, ModelContainerType * model_container_type, IsContainerByValueRenameMe * foo, const FT & field_type)
|
||||
{
|
||||
Clearer * clearer = model_connector->get_clearer();
|
||||
|
||||
if( clearer )
|
||||
{
|
||||
clearer->clear_container(field_container, model_container_type, foo);
|
||||
clearer->clear_container(field_container, model_container_type, foo, field_type);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1412,7 +1412,7 @@ protected:
|
||||
|
||||
if( model_env->model_work_mode == MORM_MODEL_WORK_MODE_CLEARING_VALUE )
|
||||
{
|
||||
field_list_clearing_values(field_container, model_container_type, foo);
|
||||
field_list_clearing_values(field_container, model_container_type, foo, field_type);
|
||||
}
|
||||
|
||||
if( model_env->model_work_mode == MORM_MODEL_WORK_MODE_PROPAGATE_SAVE_STATUS )
|
||||
|
Reference in New Issue
Block a user